public function ContentAwareGeneratorTest::testGenerateNoContentRepository in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\ContentAwareGeneratorTest::testGenerateNoContentRepository()
Generate with a content_id but there is no content repository.
@expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ ContentAwareGeneratorTest.php, line 312
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testGenerateNoContentRepository() {
$this->provider
->expects($this
->never())
->method('getRouteByName');
$this->generator
->generate('', array(
'content_id' => '/content/id',
));
}