Method |
Description |
|
acceptLanguageTestData ( ) : array |
Provides the test data for the accept language header tests. |
|
localeTestData ( ) : array |
Provides the test data for the locale tests. |
|
testCreateWithLocales ( ) |
Tests the createWithLocales() method. |
|
testInstantiation ( ) |
Tests the object instantiation. |
|
testInvalidLocale ( ) |
Tests the onKernelRequest() method with an invalid locale. |
|
testWithLanguageHeader ( string $locale, string $expected, array $available ) |
Tests the onKernelRequest() method with an accept language header. |
|
testWithRequestAttribute ( string $locale, string $expected ) |
Tests the onKernelRequest() method with a request attribute. |
|
testWithSessionValue ( string $locale, string $expected ) |
Tests the onKernelRequest() method with the session locale. |
|
testWithoutContainer ( ) |
Tests the onKernelRequest() method without container. |
|
testWithoutSession ( string $locale, string $expected ) |
Tests the onKernelRequest() method without session. |
|