diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-15 15:22:39 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-26 14:02:31 +0100 |
commit | 119961951841407191e29b220a17f9bf16fce126 (patch) | |
tree | ccbfff08334016b9f6d0fd6fbfd4f5eac6c92bbc /tests/lib | |
parent | 2cb26a915184301873843629e8c4cbf7641776f5 (diff) | |
download | nextcloud-server-119961951841407191e29b220a17f9bf16fce126.tar.gz nextcloud-server-119961951841407191e29b220a17f9bf16fce126.zip |
Move legacy test file to new location
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/l10n/l10nlegacytest.php (renamed from tests/lib/l10n.php) | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/lib/l10n.php b/tests/lib/l10n/l10nlegacytest.php index d285f399291..f83f6b2b69a 100644 --- a/tests/lib/l10n.php +++ b/tests/lib/l10n/l10nlegacytest.php @@ -6,15 +6,21 @@ * See the COPYING-README file. */ +namespace Test\L10N; + + +use OC_L10N; +use DateTime; + /** * Class Test_L10n * @group DB */ -class Test_L10n extends \Test\TestCase { +class L10nLegacyTest extends \Test\TestCase { public function testGermanPluralTranslations() { $l = new OC_L10N('test'); - $transFile = OC::$SERVERROOT.'/tests/data/l10n/de.json'; + $transFile = \OC::$SERVERROOT.'/tests/data/l10n/de.json'; $l->load($transFile); $this->assertEquals('1 Datei', (string)$l->n('%n file', '%n files', 1)); @@ -23,7 +29,7 @@ class Test_L10n extends \Test\TestCase { public function testRussianPluralTranslations() { $l = new OC_L10N('test'); - $transFile = OC::$SERVERROOT.'/tests/data/l10n/ru.json'; + $transFile = \OC::$SERVERROOT.'/tests/data/l10n/ru.json'; $l->load($transFile); $this->assertEquals('1 файл', (string)$l->n('%n file', '%n files', 1)); @@ -48,7 +54,7 @@ class Test_L10n extends \Test\TestCase { public function testCzechPluralTranslations() { $l = new OC_L10N('test'); - $transFile = OC::$SERVERROOT.'/tests/data/l10n/cs.json'; + $transFile = \OC::$SERVERROOT.'/tests/data/l10n/cs.json'; $l->load($transFile); $this->assertEquals('1 okno', (string)$l->n('%n window', '%n windows', 1)); @@ -121,7 +127,7 @@ class Test_L10n extends \Test\TestCase { * @dataProvider findLanguageData */ public function testFindLanguage($default, $preference, $expected) { - OC_User::setUserId(null); + \OC_User::setUserId(null); $config = \OC::$server->getConfig(); if (is_null($default)) { |