ThemeManagerWebTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 10
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testDependencyInjection() 0 12 1
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\CoreBundle\Tests\Manager;
13
14
use WBW\Bundle\CoreBundle\Manager\ThemeManager;
15
use WBW\Bundle\CoreBundle\Tests\AbstractWebTestCase;
16
use WBW\Library\Symfony\Provider\Theme\ApplicationThemeProviderInterface;
17
use WBW\Library\Symfony\Provider\Theme\BreadcrumbsThemeProviderInterface;
18
use WBW\Library\Symfony\Provider\Theme\FooterThemeProviderInterface;
19
use WBW\Library\Symfony\Provider\Theme\HookDropdownThemeProviderInterface;
20
use WBW\Library\Symfony\Provider\Theme\NotificationsDropdownThemeProviderInterface;
21
use WBW\Library\Symfony\Provider\Theme\SearchThemeProviderInterface;
22
use WBW\Library\Symfony\Provider\Theme\TasksDropdownThemeProviderInterface;
23
use WBW\Library\Symfony\Provider\Theme\UserInfoThemeProviderInterface;
24
25
/**
26
 * Theme manager test.
27
 *
28
 * @author webeweb <https://github.com/webeweb>
29
 * @package WBW\Bundle\CoreBundle\Tests\Manager
30
 */
31
class ThemeManagerWebTest extends AbstractWebTestCase {
32
33
    /**
34
     * Test the dependency injection.
35
     *
36
     * @return void
37
     */
38
    public function testDependencyInjection(): void {
39
40
        $obj = static::$kernel->getContainer()->get(ThemeManager::SERVICE_NAME . ".alias");
41
42
        $this->assertInstanceOf(ApplicationThemeProviderInterface::class, $obj->getApplicationThemeProvider());
43
        $this->assertInstanceOf(BreadcrumbsThemeProviderInterface::class, $obj->getBreadcrumbsThemeProvider());
44
        $this->assertInstanceOf(FooterThemeProviderInterface::class, $obj->getFooterThemeProvider());
45
        $this->assertInstanceOf(HookDropdownThemeProviderInterface::class, $obj->getHookDropdownThemeProvider());
46
        $this->assertInstanceOf(NotificationsDropdownThemeProviderInterface::class, $obj->getNotificationsDropdownThemeProvider());
47
        $this->assertInstanceOf(SearchThemeProviderInterface::class, $obj->getSearchThemeProvider());
48
        $this->assertInstanceOf(TasksDropdownThemeProviderInterface::class, $obj->getTasksDropdownThemeProvider());
49
        $this->assertInstanceOf(UserInfoThemeProviderInterface::class, $obj->getUserInfoThemeProvider());
50
    }
51
}
52