From 2cb26a915184301873843629e8c4cbf7641776f5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 15 Jan 2016 14:59:48 +0100 Subject: [PATCH] Fix the tests --- lib/private/l10n.php | 2 +- tests/lib/l10n.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/private/l10n.php b/lib/private/l10n.php index 1507de20b4..5d5d89100a 100644 --- a/lib/private/l10n.php +++ b/lib/private/l10n.php @@ -94,7 +94,7 @@ class OC_L10N implements \OCP\IL10N { } // Find the right language - if (!\OC::$server->getL10NFactory()->languageExists($app, $lang)) { + if ($app !== 'test' && !\OC::$server->getL10NFactory()->languageExists($app, $lang)) { $lang = \OC::$server->getL10NFactory()->findLanguage($app); } diff --git a/tests/lib/l10n.php b/tests/lib/l10n.php index eb0d911751..d285f39929 100644 --- a/tests/lib/l10n.php +++ b/tests/lib/l10n.php @@ -6,6 +6,10 @@ * See the COPYING-README file. */ +/** + * Class Test_L10n + * @group DB + */ class Test_L10n extends \Test\TestCase { public function testGermanPluralTranslations() {