public function testFactoryGetLanguageCode() { $factory = new \OC\L10N\Factory(); $l = $factory->get('lib', 'de'); $this->assertEquals('de', $l->getLanguageCode()); }
public function testFactoryGetLanguageCode() { $factory = new \OC\L10N\Factory($this->getMock('OCP\\IConfig'), $this->getMock('OCP\\IRequest')); $l = $factory->get('lib', 'de'); $this->assertEquals('de', $l->getLanguageCode()); }