public function ContentAwareGeneratorTest::testGenerateRoutenameMultilangNotFound

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

File

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

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

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