diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-11-02 19:22:50 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-11-02 19:32:48 +0100 |
commit | b862705947ff14f54023ba6d1cbead3435d0f234 (patch) | |
tree | 42c37b85fe5084a65c65ffcacef7a11b782baaf5 /tests/helper | |
parent | dff039092d180fffa89e7d88f7a4b7bc24dfc80f (diff) | |
download | Shaarli-b862705947ff14f54023ba6d1cbead3435d0f234.tar.gz Shaarli-b862705947ff14f54023ba6d1cbead3435d0f234.tar.zst Shaarli-b862705947ff14f54023ba6d1cbead3435d0f234.zip |
UT: fix formatting issue when the current day has a single digit
Diffstat (limited to 'tests/helper')
-rw-r--r-- | tests/helper/DailyPageHelperTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/helper/DailyPageHelperTest.php b/tests/helper/DailyPageHelperTest.php index e0378491..5255b7b1 100644 --- a/tests/helper/DailyPageHelperTest.php +++ b/tests/helper/DailyPageHelperTest.php | |||
@@ -240,8 +240,8 @@ class DailyPageHelperTest extends TestCase | |||
240 | public function getDescriptionsByType(): array | 240 | public function getDescriptionsByType(): array |
241 | { | 241 | { |
242 | return [ | 242 | return [ |
243 | [DailyPageHelper::DAY, $date = new \DateTimeImmutable(), 'Today - ' . $date->format('F d, Y')], | 243 | [DailyPageHelper::DAY, $date = new \DateTimeImmutable(), 'Today - ' . $date->format('F j, Y')], |
244 | [DailyPageHelper::DAY, $date = new \DateTimeImmutable('-1 day'), 'Yesterday - ' . $date->format('F d, Y')], | 244 | [DailyPageHelper::DAY, $date = new \DateTimeImmutable('-1 day'), 'Yesterday - ' . $date->format('F j, Y')], |
245 | [DailyPageHelper::DAY, new \DateTimeImmutable('2020-10-09 04:05:06'), 'October 9, 2020'], | 245 | [DailyPageHelper::DAY, new \DateTimeImmutable('2020-10-09 04:05:06'), 'October 9, 2020'], |
246 | [DailyPageHelper::WEEK, new \DateTimeImmutable('2020-10-09 04:05:06'), 'Week 41 (October 5, 2020)'], | 246 | [DailyPageHelper::WEEK, new \DateTimeImmutable('2020-10-09 04:05:06'), 'Week 41 (October 5, 2020)'], |
247 | [DailyPageHelper::MONTH, new \DateTimeImmutable('2020-10-09 04:05:06'), 'October, 2020'], | 247 | [DailyPageHelper::MONTH, new \DateTimeImmutable('2020-10-09 04:05:06'), 'October, 2020'], |