Completed
Pull Request — master (#33)
by Kevin
09:56
created

ZenstruckRedirectBundleTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 16 1
1
<?php
2
3
namespace Zenstruck\RedirectBundle\Tests;
4
5
use PHPUnit\Framework\TestCase;
6
use Zenstruck\RedirectBundle\ZenstruckRedirectBundle;
7
8
/**
9
 * @author Kevin Bond <[email protected]>
10
 */
11
class ZenstruckRedirectBundleTest extends TestCase
12
{
13
    /**
14
     * @test
15
     */
16
    public function build()
17
    {
18
        $container = $this
19
            ->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')
20
            ->setMethods(['addCompilerPass'])
21
            ->getMock()
22
        ;
23
        $container
24
            ->expects($this->once())
25
            ->method('addCompilerPass')
26
            ->with($this->isInstanceOf('Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass'))
27
        ;
28
29
        $bundle = new ZenstruckRedirectBundle();
30
        $bundle->build($container);
31
    }
32
}
33