diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-17 16:15:05 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-17 16:15:05 +0200 |
commit | de97110f58063798b41036db03004a891036e1bc (patch) | |
tree | e09b4e6ab83e83b88ca25da3c17793e8ad748112 /tests | |
parent | 56031fe1555e011ee9be56547cd597c6dbcf4c22 (diff) | |
parent | f7f9ef55b6b6129113f0de1e3589e1ed1f9850a7 (diff) | |
download | nextcloud-server-de97110f58063798b41036db03004a891036e1bc.tar.gz nextcloud-server-de97110f58063798b41036db03004a891036e1bc.zip |
Merge pull request #24441 from owncloud/backport-24432-never-save-app-language-into-request-lang
[9.0] Do not save the language as request lang for apps when we didn't find…
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/l10n/factorytest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/l10n/factorytest.php b/tests/lib/l10n/factorytest.php index e4c0eab2e6a..98bb5ec13c9 100644 --- a/tests/lib/l10n/factorytest.php +++ b/tests/lib/l10n/factorytest.php @@ -343,6 +343,15 @@ class FactoryTest extends TestCase { [null, 'de', 'ru', ['de'], 'de', 'ru'], [null, 'de,en', 'ru', ['de'], 'de', 'ru'], [null, 'de-DE,en-US;q=0.8,en;q=0.6', 'ru', ['de'], 'de', 'ru'], + + // Request lang should not be set for apps: Language is available + ['files_pdfviewer', 'de', null, ['de'], 'de', ''], + ['files_pdfviewer', 'de,en', null, ['de'], 'de', ''], + ['files_pdfviewer', 'de-DE,en-US;q=0.8,en;q=0.6', null, ['de'], 'de', ''], + // Request lang should not be set for apps: Language is not available + ['files_pdfviewer', 'de', null, ['ru'], 'en', ''], + ['files_pdfviewer', 'de,en', null, ['ru', 'en'], 'en', ''], + ['files_pdfviewer', 'de-DE,en-US;q=0.8,en;q=0.6', null, ['ru', 'en'], 'en', ''], ]; } |