From b746b5a64d9bc8812a3a8fc01cfbdeaf5e08a12d Mon Sep 17 00:00:00 2001 From: jygaulier Date: Thu, 5 Aug 2021 09:37:52 +0200 Subject: [PATCH] PHRAS-1974_rgpd-remove-unactive-users fix : fix test --- .../Tests/Phrasea/Authentication/AuthenticatorTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();