@@ -203,6 +203,52 @@ class RedirectTest extends TestCase
203203 ],
204204 ],
205205
206+ // No persistence / detection
207+ [
208+ 'urlManager ' => [
209+ 'languages ' => ['en-US ' , 'en ' , 'de ' , 'pt ' , 'at ' => 'de-AT ' , 'alias ' => 'fr ' , 'es-BO ' , 'wc-* ' ],
210+ 'enableLanguageDetection ' => false ,
211+ 'enableLanguagePersistence ' => false ,
212+ ],
213+ 'redirects ' => [
214+ '/ ' => [
215+ [false ],
216+ [false ,
217+ 'session ' => ['_language ' => 'de ' ],
218+ 'cookie ' => ['_language ' => 'fr ' ],
219+ 'request ' => ['acceptableLanguages ' => ['pt ' ]],
220+ ],
221+ ],
222+ '/site/page ' => [
223+ [false ],
224+ [false ,
225+ 'session ' => ['_language ' => 'de ' ],
226+ 'cookie ' => ['_language ' => 'fr ' ],
227+ 'request ' => ['acceptableLanguages ' => ['pt ' ]],
228+ ],
229+ ],
230+ '/de ' => [
231+ [false ],
232+ [false ,
233+ 'session ' => ['_language ' => 'en ' ],
234+ 'cookie ' => ['_language ' => 'fr ' ],
235+ 'request ' => ['acceptableLanguages ' => ['pt ' ]],
236+ ],
237+ ],
238+ '/de/site/page ' => [
239+ [false ],
240+ [false ,
241+ 'session ' => ['_language ' => 'en ' ],
242+ 'cookie ' => ['_language ' => 'fr ' ],
243+ 'request ' => ['acceptableLanguages ' => ['pt ' ]],
244+ ],
245+ ],
246+ '/en ' => '/ ' ,
247+ '/en/site/page ' => '/site/page ' ,
248+ ],
249+ ],
250+
251+
206252 // Suffix in UrlManager, with + w/o URL code for default language
207253 [
208254 'urlManager ' => [
0 commit comments