public function RegisterRouteEnhancersPassTest::testNoDynamicRouter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/DependencyInjection/Compiler/RegisterRouteEnhancersPassTest.php \Symfony\Cmf\Component\Routing\Tests\DependencyInjection\Compiler\RegisterRouteEnhancersPassTest::testNoDynamicRouter()
If there is no dynamic router defined in the container builder, nothing should be processed.
File
- vendor/
symfony-cmf/ routing/ Tests/ DependencyInjection/ Compiler/ RegisterRouteEnhancersPassTest.php, line 59
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\DependencyInjection\CompilerCode
public function testNoDynamicRouter() {
$builder = $this
->getMock('Symfony\\Component\\DependencyInjection\\ContainerBuilder');
$builder
->expects($this
->once())
->method('hasDefinition')
->with('cmf_routing.dynamic_router')
->will($this
->returnValue(false));
$pass = new RegisterRouteEnhancersPass();
$pass
->process($builder);
}