Use a more stable timezone.

Regina does not observe DST meaning this test won't fail twice a year.
This commit is contained in:
mark_story 2015-10-26 22:27:54 -04:00
parent b583a59264
commit bc977544c5

View file

@ -1169,7 +1169,7 @@ class CakeTimeTest extends CakeTestCase {
$return = CakeTime::listTimezones(null, null, array('abbr' => true));
$this->assertTrue(isset($return['Asia']['Asia/Jakarta']));
$this->assertEquals('Jakarta - WIB', $return['Asia']['Asia/Jakarta']);
$this->assertEquals('Amsterdam - CEST', $return['Europe']['Europe/Amsterdam']);
$this->assertEquals('Regina - CST', $return['America']['America/Regina']);
$return = CakeTime::listTimezones(null, null, array(
'abbr' => true,
@ -1177,7 +1177,7 @@ class CakeTimeTest extends CakeTestCase {
'after' => ')',
));
$this->assertEquals('Jayapura (WIT)', $return['Asia']['Asia/Jayapura']);
$this->assertEquals('Amsterdam (CEST)', $return['Europe']['Europe/Amsterdam']);
$this->assertEquals('Regina (CST)', $return['America']['America/Regina']);
$return = CakeTime::listTimezones('#^(America|Pacific)/#', null, false);
$this->assertTrue(isset($return['America/Argentina/Buenos_Aires']));