diff options
Diffstat (limited to 'tests/front/controller/admin/FrontAdminControllerMockHelper.php')
-rw-r--r-- | tests/front/controller/admin/FrontAdminControllerMockHelper.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/front/controller/admin/FrontAdminControllerMockHelper.php b/tests/front/controller/admin/FrontAdminControllerMockHelper.php index 94581c09..bd40c0c7 100644 --- a/tests/front/controller/admin/FrontAdminControllerMockHelper.php +++ b/tests/front/controller/admin/FrontAdminControllerMockHelper.php | |||
@@ -6,7 +6,6 @@ namespace Shaarli\Front\Controller\Admin; | |||
6 | 6 | ||
7 | use Shaarli\Container\ShaarliTestContainer; | 7 | use Shaarli\Container\ShaarliTestContainer; |
8 | use Shaarli\Front\Controller\Visitor\FrontControllerMockHelper; | 8 | use Shaarli\Front\Controller\Visitor\FrontControllerMockHelper; |
9 | use Shaarli\Security\LoginManager; | ||
10 | 9 | ||
11 | /** | 10 | /** |
12 | * Trait FrontControllerMockHelper | 11 | * Trait FrontControllerMockHelper |
@@ -28,7 +27,7 @@ trait FrontAdminControllerMockHelper | |||
28 | { | 27 | { |
29 | $this->parentCreateContainer(); | 28 | $this->parentCreateContainer(); |
30 | 29 | ||
31 | $this->container->loginManager = $this->createMock(LoginManager::class); | ||
32 | $this->container->loginManager->method('isLoggedIn')->willReturn(true); | 30 | $this->container->loginManager->method('isLoggedIn')->willReturn(true); |
31 | $this->container->sessionManager->method('checkToken')->willReturn(true); | ||
33 | } | 32 | } |
34 | } | 33 | } |