You are here

public function ContentAwareGeneratorTest::testGetLocaleContext 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::testGetLocaleContext()

File

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

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGetLocaleContext() {
  $this->generator
    ->setDefaultLocale('en');
  $this->generator
    ->getContext()
    ->setParameter('_locale', 'de');
  $attributes = array();
  $this
    ->assertEquals('de', $this->generator
    ->getLocale($attributes));
}