Completed
Push — master ( 4875ee...2016fa )
by Christian
06:49
created

Core23PiwikExtensionTest::getContainerExtensions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/*
4
 * (c) Christian Gripp <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Core23\PiwikBundle\Tests\DependencyInjection;
11
12
use Core23\PiwikBundle\DependencyInjection\Core23PiwikExtension;
13
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
14
15
class Core23PiwikExtensionTest extends AbstractExtensionTestCase
16
{
17
    public function testLoadDefault()
18
    {
19
        $this->setParameter('kernel.bundles', array());
20
        $this->load();
21
22
        $this->assertContainerBuilderHasAlias('core23.piwik.http.client', 'httplug.client.default');
23
        $this->assertContainerBuilderHasAlias('core23.piwik.http.message_factory', 'httplug.message_factory.default');
24
    }
25
26
    protected function getContainerExtensions()
27
    {
28
        return array(
29
            new Core23PiwikExtension(),
30
        );
31
    }
32
}
33