public function ContentAwareGeneratorTest::testGenerateNoContentRepository

@expectedException Symfony\Component\Routing\Exception\RouteNotFoundException

File

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

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGenerateNoContentRepository() {
  $this->provider
    ->expects($this
    ->never())
    ->method('getRouteByName');
  $this->generator
    ->generate('', array(
    'content_id' => '/content/id',
  ));
}