diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-09-30 17:53:15 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-02 12:51:45 +0200 |
commit | 6b53f7c40e8bbaecfa20a3b19b3164e332903f59 (patch) | |
tree | 9df3e328daa7e8aa53bd4c939e145942d9bd1b72 /tests | |
parent | 4fb2ef3bacf2ae8eeac0b5bebecd98b90cca5511 (diff) | |
download | nextcloud-server-6b53f7c40e8bbaecfa20a3b19b3164e332903f59.tar.gz nextcloud-server-6b53f7c40e8bbaecfa20a3b19b3164e332903f59.zip |
[l10n] remove unused static methods
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/l10n.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/lib/l10n.php b/tests/lib/l10n.php index d5f9a5ca3fa..cb2f4179c4d 100644 --- a/tests/lib/l10n.php +++ b/tests/lib/l10n.php @@ -92,8 +92,7 @@ class Test_L10n extends \Test\TestCase { * @dataProvider localizationDataProvider */ public function testNumericStringLocalization($expectedDate, $lang, $type, $value) { - $l = new OC_L10N('test'); - $l->forceLanguage($lang); + $l = new OC_L10N('test', $lang); $this->assertSame($expectedDate, $l->l($type, $value)); } @@ -110,8 +109,7 @@ class Test_L10n extends \Test\TestCase { * @param $lang */ public function testFirstWeekDay($expected, $lang) { - $l = new OC_L10N('test'); - $l->forceLanguage($lang); + $l = new OC_L10N('test', $lang); $this->assertSame($expected, $l->l('firstday', 'firstday')); } |