summaryrefslogtreecommitdiffstats
path: root/tests/lib/L10N/L10nTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/L10N/L10nTest.php')
-rw-r--r--tests/lib/L10N/L10nTest.php5
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']));
+ }
}