Example #1
0
 public function testFactoryGetLanguageCode()
 {
     $factory = new \OC\L10N\Factory();
     $l = $factory->get('lib', 'de');
     $this->assertEquals('de', $l->getLanguageCode());
 }
Example #2
0
 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());
 }