public function LocaleListenerTest::testRequestLocaleIsNotOverridden in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/EventListener/LocaleListenerTest.php \Symfony\Component\HttpKernel\Tests\EventListener\LocaleListenerTest::testRequestLocaleIsNotOverridden()
File
- vendor/
symfony/ http-kernel/ Tests/ EventListener/ LocaleListenerTest.php, line 88
Class
Namespace
Symfony\Component\HttpKernel\Tests\EventListenerCode
public function testRequestLocaleIsNotOverridden() {
$request = Request::create('/');
$request
->setLocale('de');
$listener = new LocaleListener('fr', null, $this->requestStack);
$event = $this
->getEvent($request);
$listener
->onKernelRequest($event);
$this
->assertEquals('de', $request
->getLocale());
}