public function ContentAwareGeneratorTest::testGenerateInvalidRoute

@expectedException Symfony\Component\Routing\Exception\RouteNotFoundException

File

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

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

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