diff --git a/tests/Alchemy/Tests/Phrasea/Authentication/AuthenticatorTest.php b/tests/Alchemy/Tests/Phrasea/Authentication/AuthenticatorTest.php index bb70a0ab5e..71fe45b742 100644 --- a/tests/Alchemy/Tests/Phrasea/Authentication/AuthenticatorTest.php +++ b/tests/Alchemy/Tests/Phrasea/Authentication/AuthenticatorTest.php @@ -56,7 +56,9 @@ class AuthenticatorTest extends \PhraseanetTestCase $capturedSession = null; $app['browser'] = $browser = $this->getBrowserMock(); - $app['session'] = $session = $this->getSessionMock(); + $app['session'] = $session = $this->getSessionMock() + ->method('getCreated') + ->will($this->returnvalue(new DateTime())); $app['orm.em'] = $em = $this->createEntityManagerMock(); $user = $this->createUserMock();