array_keys(InstallerLocaleListener::
getSubscribedEvents()) );
} /**
* @dataProvider installerLocaleProvider
*/
public function testSetInstallerLocale(Request
$request, string
$expectedLocale): void
{ $listener =
new InstallerLocaleListener(['de' => 'de-DE', 'en' => 'en-GB', 'nl' => 'nl-NL', 'fr' => 'fr-FR'
]);
$listener->
setInstallerLocale( new RequestEvent( $this->
createMock(HttpKernelInterface::
class),
$request,
HttpKernelInterface::MAIN_REQUEST
) );
static::
assertSame($expectedLocale,
$request->attributes->
get('_locale'
));
static::
assertSame($expectedLocale,
$request->
getLocale());
}