Skip to content

Commit

Permalink
Set testNow() on MutableDate too.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 17, 2015
1 parent 037e1d6 commit cd73d07
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/bootstrap.php
Expand Up @@ -12,6 +12,10 @@
*/

use Cake\Cache\Cache;
use Cake\Chronos\Chronos;
use Cake\Chronos\Date;
use Cake\Chronos\MutableDate;
use Cake\Chronos\MutableDateTime;
use Cake\Core\Configure;
use Cake\Datasource\ConnectionManager;
use Cake\I18n\I18n;
Expand Down Expand Up @@ -118,8 +122,9 @@
]
]);

Cake\Chronos\Chronos::setTestNow(Cake\Chronos\Chronos::now());
Cake\Chronos\MutableDateTime::setTestNow(Cake\Chronos\MutableDateTime::now());
Cake\Chronos\Date::setTestNow(Cake\Chronos\Date::now());
Chronos::setTestNow(Chronos::now());
MutableDateTime::setTestNow(MutableDateTime::now());
Date::setTestNow(Date::now());
MutableDate::setTestNow(MutableDate::now());

ini_set('intl.default_locale', 'en_US');

0 comments on commit cd73d07

Please sign in to comment.