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

ZenstruckRedirectBundleTest::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 9.7333
c 0
b 0
f 0
cc 1
nc 1
nop 0
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