diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-02 18:01:17 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-03 16:47:31 +0100 |
commit | 5fc004f8ead3a8b2cdf40768ba69f906d998af16 (patch) | |
tree | ffbc183f69217d0a731c80efc41d4b1fb2481dea /tests | |
parent | 29ecbc8c6c714c6230b0b3c742f89398ce614247 (diff) | |
download | nextcloud-server-5fc004f8ead3a8b2cdf40768ba69f906d998af16.tar.gz nextcloud-server-5fc004f8ead3a8b2cdf40768ba69f906d998af16.zip |
Add a test of what everyone thinks should be the result of this method
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()); + } } |