X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fhttp-kernel%2FTests%2FEventListener%2FLocaleListenerTest.php;h=332393eead2fcf8a895081de5be8f744d640f215;hb=9e65bae52407293a5182f19dc57b5628b09e92f4;hp=2ce32819e19e44004469be0e7f492b26cf7af699;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/http-kernel/Tests/EventListener/LocaleListenerTest.php b/vendor/symfony/http-kernel/Tests/EventListener/LocaleListenerTest.php index 2ce32819e..332393eea 100644 --- a/vendor/symfony/http-kernel/Tests/EventListener/LocaleListenerTest.php +++ b/vendor/symfony/http-kernel/Tests/EventListener/LocaleListenerTest.php @@ -38,8 +38,7 @@ class LocaleListenerTest extends TestCase public function testLocaleFromRequestAttribute() { $request = Request::create('/'); - session_name('foo'); - $request->cookies->set('foo', 'value'); + $request->cookies->set(session_name(), 'value'); $request->attributes->set('_locale', 'es'); $listener = new LocaleListener($this->requestStack, 'fr');