public function ProviderBasedGeneratorTest::testGenerateNotFound

@expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException

File

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

Class

ProviderBasedGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGenerateNotFound() {
  $name = 'foo/bar';
  $this->provider
    ->expects($this
    ->once())
    ->method('getRouteByName')
    ->with($name)
    ->will($this
    ->returnValue(null));
  $this->generator
    ->generate($name);
}