From 7825e52f7eed3a6fca5d25764c7214ee585c436a Mon Sep 17 00:00:00 2001 From: jmsche Date: Sat, 31 Aug 2024 13:16:45 +0200 Subject: [PATCH] Fix tests --- tests/Twig/Extension/DateExtensionTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Twig/Extension/DateExtensionTest.php b/tests/Twig/Extension/DateExtensionTest.php index f9cc674b..b1872492 100644 --- a/tests/Twig/Extension/DateExtensionTest.php +++ b/tests/Twig/Extension/DateExtensionTest.php @@ -42,7 +42,7 @@ public static function timeAgoData(): iterable yield [new \DateTime('-2 minutes'), 'timeago.minutesago|%minutes%=2|%count%=2']; yield [new \DateTime('-2 hours'), 'timeago.hoursago|%hours%=2|%count%=2']; yield [new \DateTime('-2 days'), 'timeago.daysago|%days%=2|%count%=2']; - yield [new \DateTime('-2 months'), 'timeago.monthsago|%months%=2|%count%=2']; + yield [new \DateTime('-2 months -3 days'), 'timeago.monthsago|%months%=2|%count%=2']; $twoYears = new \DateTimeImmutable('-2 years'); @@ -52,7 +52,7 @@ public static function timeAgoData(): iterable yield [new \DateTimeImmutable('-2 minutes'), 'timeago.minutesago|%minutes%=2|%count%=2']; yield [new \DateTimeImmutable('-2 hours'), 'timeago.hoursago|%hours%=2|%count%=2']; yield [new \DateTimeImmutable('-2 days'), 'timeago.daysago|%days%=2|%count%=2']; - yield [new \DateTimeImmutable('-2 months'), 'timeago.monthsago|%months%=2|%count%=2']; + yield [new \DateTimeImmutable('-2 months -3 days'), 'timeago.monthsago|%months%=2|%count%=2']; // Check with string yield [$twoYears->format('Y-m-d H:i:s'), 'timeago.yearsago|%years%=2|%count%=2'];