mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Added timezone setting to allow tests to pass in all timezones.
This commit is contained in:
parent
ea635d6bea
commit
ac81ba75cb
1 changed files with 2 additions and 0 deletions
|
@ -661,7 +661,9 @@ class TimeHelperTest extends CakeTestCase {
|
|||
'locales' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'locale' . DS)
|
||||
), true);
|
||||
Configure::write('Config.language', 'time_test');
|
||||
|
||||
$time = 1263487419; // Thu Jan 14 11:43:39 2010
|
||||
date_default_timezone_set('Etc/GMT+5');
|
||||
|
||||
$result = $this->Time->convertSpecifiers('%a', $time);
|
||||
$expected = 'jue';
|
||||
|
|
Loading…
Add table
Reference in a new issue