diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-03-03 18:33:08 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-03-03 18:33:08 +0100 |
commit | e12c83e3dc85d80d6271e05395b3e55e98b3a2b0 (patch) | |
tree | 3dc779ab16a296fea6c5eff1aea90f7a603a0c0e /tests | |
parent | 1761b162e65e24ade7c9db1d96341a49e29f653f (diff) | |
parent | b669bf26d6774706a61242d67fbfe24f05eb1760 (diff) | |
download | nextcloud-server-e12c83e3dc85d80d6271e05395b3e55e98b3a2b0.tar.gz nextcloud-server-e12c83e3dc85d80d6271e05395b3e55e98b3a2b0.zip |
Merge pull request #14674 from owncloud/fix-l10n-getlanguagecode-2
Jenkins #14650
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/l10n.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lib/l10n.php b/tests/lib/l10n.php index 2235581add8..0307dd459e5 100644 --- a/tests/lib/l10n.php +++ b/tests/lib/l10n.php @@ -173,4 +173,20 @@ class Test_L10n extends \Test\TestCase { array(null, null, 'en'), ); } + + public function testGetLanguageCode() { + $l = OC_L10N::get('lib', 'de'); + $this->assertEquals('de', $l->getLanguageCode()); + } + + public function testFactoryGetLanguageCode() { + $factory = new \OC\L10N\Factory(); + $l = $factory->get('lib', 'de'); + $this->assertEquals('de', $l->getLanguageCode()); + } + + public function testServiceGetLanguageCode() { + $l = \OC::$server->getL10N('lib', 'de'); + $this->assertEquals('de', $l->getLanguageCode()); + } } |