summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-15 11:09:37 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-26 14:02:31 +0100
commit043625ee522357e25bb786c4b439c90ab21bbfd1 (patch)
tree633c64268cb5a302436ba61d20eeb7eaf7a5e516 /tests/lib
parent29a93064299f57584c6aadc8a6c56b51715d7269 (diff)
downloadnextcloud-server-043625ee522357e25bb786c4b439c90ab21bbfd1.tar.gz
nextcloud-server-043625ee522357e25bb786c4b439c90ab21bbfd1.zip
Move findLanguage() and setLanguageFromRequest() to factory
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/l10n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/l10n.php b/tests/lib/l10n.php
index d77548c5bf5..eb0d9117517 100644
--- a/tests/lib/l10n.php
+++ b/tests/lib/l10n.php
@@ -157,7 +157,7 @@ class Test_L10n extends \Test\TestCase {
}
public function testFactoryGetLanguageCode() {
- $factory = new \OC\L10N\Factory();
+ $factory = new \OC\L10N\Factory($this->getMock('OCP\IConfig'), $this->getMock('OCP\IRequest'));
$l = $factory->get('lib', 'de');
$this->assertEquals('de', $l->getLanguageCode());
}