Skip to content
Permalink
Browse files

Use a more stable timezone.

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 bc977544c5021928c24d59559d720316ad35b79b
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Utility/CakeTimeTest.php
@@ -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']));

0 comments on commit bc97754

Please sign in to comment.
You can’t perform that action at this time.