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

NotificationServiceProviderTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAliases() 0 14 1
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