Skip to content

Commit bb61dbf

Browse files
authored
freeze time (#57864)
1 parent 4e40cfd commit bb61dbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Integration/Session/DatabaseSessionHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function test_garbage_collector()
5959
$connection = $this->app['db']->connection();
6060

6161
$handler = new DatabaseSessionHandler($connection, 'sessions', 1, $this->app);
62+
Carbon::setTestNow(Carbon::now());
6263
$handler->write('simple_id_1', 'abcd');
6364
$this->assertEquals(0, $handler->gc(1));
6465

0 commit comments

Comments
 (0)