Symfony\Cmf\Bundle\RoutingBundle\Tests\Functional\Admin\RouteDefaultsValidatorTest::testTemplateViolation PHP Method

testTemplateViolation() public method

    public function testTemplateViolation()
    {
        $this->templating->expects($this->any())->method('exists')->will($this->returnValue(false));
        $this->validator->validate(array('_template' => 'NotExistingBundle:Foo:bar.html.twig'), new RouteDefaults(array('message' => 'my message')));
        $this->buildViolation('my message')->setParameter('%name%', 'NotExistingBundle:Foo:bar.html.twig')->assertRaised();
    }