public function ContentAwareGeneratorTest::testGetLocaleContext in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testGetLocaleContext() {
$this->generator
->setDefaultLocale('en');
$this->generator
->getContext()
->setParameter('_locale', 'de');
$attributes = array();
$this
->assertEquals('de', $this->generator
->getLocale($attributes));
}