public function ContentAwareGeneratorTest::testGenerateNoncmfRouteMultilang

File

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

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGenerateNoncmfRouteMultilang() {
  $route_en = $this
    ->buildMock('Symfony\\Component\\Routing\\Route', array(
    'getDefaults',
    'compile',
    'getRouteContent',
  ));
  $route_en
    ->expects($this
    ->once())
    ->method('compile')
    ->will($this
    ->returnValue($this->routeCompiled));
  $this
    ->assertEquals('result_url', $this->generator
    ->generate($route_en, array(
    '_locale' => 'de',
  )));
}