You are here

public function ContentAwareGeneratorTest::testGenerateNoContentRepository in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

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',
  ));
}