You are here

public function ContentAwareGeneratorTest::testGenerateNoncmfRouteMultilang in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\ContentAwareGeneratorTest::testGenerateNoncmfRouteMultilang()

File

vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php, line 183

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

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