diff options
author | Georg Ehrke <developer@georgehrke.com> | 2017-11-03 10:48:04 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-11-03 11:20:04 +0100 |
commit | e111da777a735d8ba6c38416f1602cbfea4d3eb8 (patch) | |
tree | ed275973e4516183536e59c3a66cadd3ceba7ba5 /tests/lib/L10N | |
parent | 43147aeadaa73ada7421b7a9a226bd925dd7e54b (diff) | |
download | nextcloud-server-e111da777a735d8ba6c38416f1602cbfea4d3eb8.tar.gz nextcloud-server-e111da777a735d8ba6c38416f1602cbfea4d3eb8.zip |
Make L10N->l provide weekdayName
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'tests/lib/L10N')
-rw-r--r-- | tests/lib/L10N/L10nTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/L10N/L10nTest.php b/tests/lib/L10N/L10nTest.php index 6d662efee23..703aa9e227c 100644 --- a/tests/lib/L10N/L10nTest.php +++ b/tests/lib/L10N/L10nTest.php @@ -164,4 +164,9 @@ class L10nTest extends TestCase { $l = \OC::$server->getL10N('lib', 'de'); $this->assertEquals('de', $l->getLanguageCode()); } + + public function testWeekdayName() { + $l = \OC::$server->getL10N('lib', 'de'); + $this->assertEquals('Mo.', $l->l('weekdayName', new \DateTime('2017-11-6'), ['width' => 'abbreviated'])); + } } |