You are here

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

File

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

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGetLocaleAttribute() {
  $this->generator
    ->setDefaultLocale('en');
  $attributes = array(
    '_locale' => 'fr',
  );
  $this
    ->assertEquals('fr', $this->generator
    ->getLocale($attributes));
}