Skip to content

Commit

Permalink
Use a more stable timezone.
Browse files Browse the repository at this point in the history
Regina does not observe DST meaning this test won't fail twice a year.
  • Loading branch information
markstory committed Oct 27, 2015
1 parent b583a59 commit bc97754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Utility/CakeTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1169,15 +1169,15 @@ public function testListTimezones() {
$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,
'before' => ' (',
'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']));
Expand Down

0 comments on commit bc97754

Please sign in to comment.