aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/container
diff options
context:
space:
mode:
Diffstat (limited to 'tests/container')
-rw-r--r--tests/container/ContainerBuilderTest.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/container/ContainerBuilderTest.php b/tests/container/ContainerBuilderTest.php
index cc2eb37f..65647249 100644
--- a/tests/container/ContainerBuilderTest.php
+++ b/tests/container/ContainerBuilderTest.php
@@ -10,6 +10,7 @@ use Shaarli\Config\ConfigManager;
10use Shaarli\Formatter\FormatterFactory; 10use Shaarli\Formatter\FormatterFactory;
11use Shaarli\History; 11use Shaarli\History;
12use Shaarli\Render\PageBuilder; 12use Shaarli\Render\PageBuilder;
13use Shaarli\Render\PageCacheManager;
13use Shaarli\Security\LoginManager; 14use Shaarli\Security\LoginManager;
14use Shaarli\Security\SessionManager; 15use Shaarli\Security\SessionManager;
15 16
@@ -35,7 +36,12 @@ class ContainerBuilderTest extends TestCase
35 $this->loginManager = $this->createMock(LoginManager::class); 36 $this->loginManager = $this->createMock(LoginManager::class);
36 $this->loginManager->method('isLoggedIn')->willReturn(true); 37 $this->loginManager->method('isLoggedIn')->willReturn(true);
37 38
38 $this->containerBuilder = new ContainerBuilder($this->conf, $this->sessionManager, $this->loginManager); 39 $this->containerBuilder = new ContainerBuilder(
40 $this->conf,
41 $this->sessionManager,
42 $this->loginManager,
43 'UT web path'
44 );
39 } 45 }
40 46
41 public function testBuildContainer(): void 47 public function testBuildContainer(): void
@@ -45,9 +51,11 @@ class ContainerBuilderTest extends TestCase
45 static::assertInstanceOf(ConfigManager::class, $container->conf); 51 static::assertInstanceOf(ConfigManager::class, $container->conf);
46 static::assertInstanceOf(SessionManager::class, $container->sessionManager); 52 static::assertInstanceOf(SessionManager::class, $container->sessionManager);
47 static::assertInstanceOf(LoginManager::class, $container->loginManager); 53 static::assertInstanceOf(LoginManager::class, $container->loginManager);
54 static::assertSame('UT web path', $container->webPath);
48 static::assertInstanceOf(History::class, $container->history); 55 static::assertInstanceOf(History::class, $container->history);
49 static::assertInstanceOf(BookmarkServiceInterface::class, $container->bookmarkService); 56 static::assertInstanceOf(BookmarkServiceInterface::class, $container->bookmarkService);
50 static::assertInstanceOf(PageBuilder::class, $container->pageBuilder); 57 static::assertInstanceOf(PageBuilder::class, $container->pageBuilder);
51 static::assertInstanceOf(FormatterFactory::class, $container->formatterFactory); 58 static::assertInstanceOf(FormatterFactory::class, $container->formatterFactory);
59 static::assertInstanceOf(PageCacheManager::class, $container->pageCacheManager);
52 } 60 }
53} 61}