public function ContentAwareGeneratorTest::testGenerateNoRoutes in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\ContentAwareGeneratorTest::testGenerateNoRoutes()
Generate from a content that has no routes associated.
@expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ ContentAwareGeneratorTest.php, line 370
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testGenerateNoRoutes() {
$this->contentDocument
->expects($this
->once())
->method('getRoutes')
->will($this
->returnValue(array()));
$this->generator
->generate($this->contentDocument);
}