Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schmidt <github@chsc.dk>2019-03-02 19:23:28 +0300
committerStefan Giehl <stefan@matomo.org>2019-03-02 19:23:28 +0300
commit17f95c216e966f0f4120cec6c2d7a2d37d81e031 (patch)
treecf1c669ac1e34274734f9cbed7db1519f71f69d7 /tests/PHPUnit/Unit
parent0e3c30ba31790bbe2318b46a4e6fc7114b3c4e50 (diff)
Preserve case for CLDR month/day names (#14015)
Do ucfirst() on formatted date instead.
Diffstat (limited to 'tests/PHPUnit/Unit')
-rw-r--r--tests/PHPUnit/Unit/Period/DayTest.php8
-rw-r--r--tests/PHPUnit/Unit/Period/MonthTest.php4
-rw-r--r--tests/PHPUnit/Unit/Period/WeekTest.php6
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/PHPUnit/Unit/Period/DayTest.php b/tests/PHPUnit/Unit/Period/DayTest.php
index 806dc53658..08b3a94fee 100644
--- a/tests/PHPUnit/Unit/Period/DayTest.php
+++ b/tests/PHPUnit/Unit/Period/DayTest.php
@@ -216,8 +216,8 @@ class DayTest extends BasePeriodTest
{
return array(
array('en', 'Wed, Oct 9'),
- array('lt', '10-09, Tr'),
- array('ru', 'Ср, 9 Окт.'),
+ array('lt', '10-09, tr'),
+ array('ru', 'Ср, 9 окт.'),
array('zh-cn', '10月9日周三'),
);
}
@@ -238,7 +238,7 @@ class DayTest extends BasePeriodTest
{
return array(
array('en', 'Wednesday, October 9, 2024'),
- array('lt', '2024 m. Spalio 9 d., Trečiadienis'),
+ array('lt', '2024 m. spalio 9 d., trečiadienis'),
array('zh-cn', '2024年10月9日星期三'),
);
}
@@ -264,4 +264,4 @@ class DayTest extends BasePeriodTest
$shouldBe = '2024-10-09';
$this->assertEquals($shouldBe, $month->getPrettyString());
}
-} \ No newline at end of file
+}
diff --git a/tests/PHPUnit/Unit/Period/MonthTest.php b/tests/PHPUnit/Unit/Period/MonthTest.php
index 7399fc1de9..a6f93f2977 100644
--- a/tests/PHPUnit/Unit/Period/MonthTest.php
+++ b/tests/PHPUnit/Unit/Period/MonthTest.php
@@ -334,7 +334,7 @@ class MonthTest extends BasePeriodTest
{
return array(
array('en', 'October 2024'),
- array('lt', '2024 m. Spalis'),
+ array('lt', '2024 m. spalis'),
array('zh-cn', '2024年10月'),
);
}
@@ -359,4 +359,4 @@ class MonthTest extends BasePeriodTest
$this->assertEquals($shouldBe, $month->getPrettyString());
}
-} \ No newline at end of file
+}
diff --git a/tests/PHPUnit/Unit/Period/WeekTest.php b/tests/PHPUnit/Unit/Period/WeekTest.php
index 23effa9595..1abb5d74be 100644
--- a/tests/PHPUnit/Unit/Period/WeekTest.php
+++ b/tests/PHPUnit/Unit/Period/WeekTest.php
@@ -127,7 +127,7 @@ class WeekTest extends BasePeriodTest
{
return array(
array('en', array('Oct 7 – 13, 2024', 'Nov 25 – Dec 1, 2024', 'Dec 30, 2024 – Jan 5, 2025')),
- array('lt', array('2024 Spal. 7–13', '2024 Lapkr. 25 – Gruod. 1', '2024 Gruod. 30 – 2025 Saus. 5')),
+ array('lt', array('2024 spal. 7–13', '2024 lapkr. 25 – gruod. 1', '2024 gruod. 30 – 2025 saus. 5')),
array('zh-cn', array('2024年10月7日至13日', '2024年11月25日至12月1日', '2024年12月30日至2025年01月5日')),
);
}
@@ -156,8 +156,8 @@ class WeekTest extends BasePeriodTest
{
return array(
array('en', array('week October 7 – 13, 2024', 'week November 25 – December 1, 2024', 'week December 30, 2024 – January 5, 2025')),
- array('es', array('semana 7–13 de Octubre de 2024', 'semana 25 de Noviembre–1 de Diciembre de 2024', 'semana 30 de Diciembre de 2024–5 de Enero de 2025')),
- array('lt', array('savaitė 2024 Spalio 7–13', 'savaitė 2024 Lapkričio 25 – Gruodžio 1', 'savaitė 2024 Gruodžio 30 – 2025 Sausio 5')),
+ array('es', array('semana 7–13 de octubre de 2024', 'semana 25 de noviembre–1 de diciembre de 2024', 'semana 30 de diciembre de 2024–5 de enero de 2025')),
+ array('lt', array('savaitė 2024 spalio 7–13', 'savaitė 2024 lapkričio 25 – gruodžio 1', 'savaitė 2024 gruodžio 30 – 2025 sausio 5')),
array('zh-cn', array('周 2024年10月7日至13日', '周 2024年11月25日至12月1日', '周 2024年12月30日至2025年01月5日')),
);
}