Passed
Push — master ( 1877a1...37d1bb )
by Gabriel
10:54
created

NotificationServiceProviderTest::testAliases()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 9
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 14
rs 9.9666
1
<?php
2
3
namespace ByTIC\Notifier\Tests\Legacy\Notifications;
4
5
use ByTIC\Notifications\ChannelManager;
6
use ByTIC\Notifications\Channels\ChannelInterface;
7
use ByTIC\Notifications\Dispatcher\Dispatcher;
8
use ByTIC\Notifications\Dispatcher\DispatcherInterface;
9
use ByTIC\Notifications\NotificationServiceProvider;
10
use ByTIC\Notifier\Tests\AbstractTest;
11
use Nip\Container\Container;
12
13
/**
14
 * Class NotificationServiceProviderTest
15
 * @package ByTIC\Notifications\Tests
16
 */
17
class NotificationServiceProviderTest extends AbstractTest
18
{
19
    public function testAliases()
20
    {
21
        $container = new Container();
22
        Container::setInstance($container);
23
24
        $provider = new NotificationServiceProvider();
25
        $provider->setContainer($container);
26
        $provider->register();
27
28
        $channelManager = $container->get(ChannelInterface::class);
29
        static::assertInstanceOf(ChannelManager::class, $channelManager);
30
31
        $dispatcher = $container->get(DispatcherInterface::class);
32
        static::assertInstanceOf(Dispatcher::class, $dispatcher);
33
    }
34
}
35