Skip to content

Commit

Permalink
Merge pull request #984 from cakephp/dereuromark-patch-1
Browse files Browse the repository at this point in the history
Chronos setTestNow for apps test harness default
  • Loading branch information
markstory authored Dec 1, 2023
2 parents 792d96a + c674ee0 commit cf324d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit cf324d7

Please sign in to comment.