aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/visitor/FrontControllerMockHelper.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/front/controller/visitor/FrontControllerMockHelper.php')
-rw-r--r--tests/front/controller/visitor/FrontControllerMockHelper.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/front/controller/visitor/FrontControllerMockHelper.php b/tests/front/controller/visitor/FrontControllerMockHelper.php
index bc3266b5..d16b6949 100644
--- a/tests/front/controller/visitor/FrontControllerMockHelper.php
+++ b/tests/front/controller/visitor/FrontControllerMockHelper.php
@@ -31,18 +31,12 @@ trait FrontControllerMockHelper
31 protected $container; 31 protected $container;
32 32
33 /** 33 /**
34 * Mock the container instance 34 * Mock the container instance and initialize container's services used by tests
35 */ 35 */
36 protected function createContainer(): void 36 protected function createContainer(): void
37 { 37 {
38 $this->container = $this->createMock(ShaarliTestContainer::class); 38 $this->container = $this->createMock(ShaarliTestContainer::class);
39 }
40 39
41 /**
42 * Initialize container's services used by tests
43 */
44 protected function createValidContainerMockSet(): void
45 {
46 $this->container->loginManager = $this->createMock(LoginManager::class); 40 $this->container->loginManager = $this->createMock(LoginManager::class);
47 41
48 // Config 42 // Config