diff --git a/tests/Session/ArraySessionHandlerTest.php b/tests/Session/ArraySessionHandlerTest.php index e6d29714c31e..8511c56b02cf 100644 --- a/tests/Session/ArraySessionHandlerTest.php +++ b/tests/Session/ArraySessionHandlerTest.php @@ -100,6 +100,7 @@ public function test_it_cleans_up_old_sessions() $this->assertSame(0, $handler->gc(300)); + Carbon::setTestNow(Carbon::now()); $handler->write('foo', 'bar'); $this->assertSame(0, $handler->gc(300)); $this->assertSame('bar', $handler->read('foo'));