public function ContentAwareGeneratorTest::testGenerateNoRoutes

@expectedException Symfony\Component\Routing\Exception\RouteNotFoundException

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ContentAwareGeneratorTest.php, line 323

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGenerateNoRoutes() {
  $this->contentDocument
    ->expects($this
    ->once())
    ->method('getRoutes')
    ->will($this
    ->returnValue(array()));
  $this->generator
    ->generate($this->contentDocument);
}