diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 1cb386d25d..49453637af 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -15,6 +15,7 @@ * @license https://opensource.org/licenses/mit-license.php MIT License */ +use Cake\Chronos\Chronos; use Cake\Core\Configure; use Cake\Datasource\ConnectionManager; use Migrations\TestSuite\Migrator; @@ -47,6 +48,9 @@ ConnectionManager::alias('test_debug_kit', 'debug_kit'); +// Fixate now to avoid one-second-leap-issues +Chronos::setTestNow(Chronos::now()); + // Fixate sessionid early on, as php7.2+ // does not allow the sessionid to be set after stdout // has been written to.