Fix the tests

This commit is contained in:
Joas Schilling 2016-01-15 14:59:48 +01:00
parent c7abe68776
commit 2cb26a9151
2 changed files with 5 additions and 1 deletions

View File

@ -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);
}

View File

@ -6,6 +6,10 @@
* See the COPYING-README file.
*/
/**
* Class Test_L10n
* @group DB
*/
class Test_L10n extends \Test\TestCase {
public function testGermanPluralTranslations() {