aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-04 08:28:13 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-04 08:28:13 +0200
commit9fbb8ce302bdc06621c7f22d09b3a672758b34cd (patch)
tree5c58e534a0aeccefae77affc374327f7c686cd6c /tests
parentadf7e7295ed94a04bd9fcb056b81e664b45b4f07 (diff)
downloadnextcloud-server-9fbb8ce302bdc06621c7f22d09b3a672758b34cd.tar.gz
nextcloud-server-9fbb8ce302bdc06621c7f22d09b3a672758b34cd.zip
Do not save the language as request lang for apps when we didn't find any
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/l10n/factorytest.php9
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', ''],
];
}