public function ContentAwareGeneratorTest::testGetLocaleAttribute 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::testGetLocaleAttribute()
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ ContentAwareGeneratorTest.php, line 392
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testGetLocaleAttribute() {
$this->generator
->setDefaultLocale('en');
$attributes = array(
'_locale' => 'fr',
);
$this
->assertEquals('fr', $this->generator
->getLocale($attributes));
}