Completed
Push — refonte ( 7173e3...bffa4c )
by Arnaud
02:33
created

LAGAdminBundleTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 5
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace LAG\AdminBundle\Tests;
4
5
use LAG\AdminBundle\DependencyInjection\CompilerPass\ResourceCompilerPass;
6
use LAG\AdminBundle\LAGAdminBundle;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
9
class LAGAdminBundleTest extends AdminTestBase
10
{
11
    public function testBuild()
12
    {
13
        $container = $this->getMockWithoutConstructor(ContainerBuilder::class);
14
        $container
15
            ->expects($this->exactly(3))
16
            ->method('addCompilerPass')
17
            ->willReturnMap([
18
                [new ResourceCompilerPass()],
19
            ])
20
        ;
21
22
        $bundle = new LAGAdminBundle();
23
        $bundle->build($container);
24
    }
25
}
26