Scheb\TwoFactorBundle\Tests\SchebTwoFactorBundleTest::build_initializeBundle_addCompilerPass PHP 메소드

build_initializeBundle_addCompilerPass() 공개 메소드

    public function build_initializeBundle_addCompilerPass()
    {
        $containerBuilder = $this->createMock('Symfony\\Component\\DependencyInjection\\ContainerBuilder');
        //Expect compiler pass to be added
        $containerBuilder->expects($this->once())->method('addCompilerPass')->with($this->isInstanceOf('Scheb\\TwoFactorBundle\\DependencyInjection\\Compiler\\ProviderCompilerPass'));
        $bundle = new SchebTwoFactorBundle();
        $bundle->build($containerBuilder);
    }