Skip to content

Commit b506683

Browse files
author
Martin Tepper
committed
Fix test
1 parent 5d487d4 commit b506683

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Mealz/MealBundle/Tests/Repository/WeekRepositoryTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public function testGetNextWeek(): void
3838
$currCalWeek = (int) $now->format('W');
3939

4040
$lastCalWeek = (int) $now->modify('last day of December')->format('W');
41-
$this->assertContains($lastCalWeek, [52, 53]);
41+
// last day of the year can we in the 52, 53 and in the calendar week 1 of the next year
42+
$this->assertContains($lastCalWeek, [52, 53, 1]);
4243

4344
$nextWeek = $this->weekRepository->getNextWeek(DateTime::createFromImmutable($now));
4445
$this->assertInstanceOf(Week::class, $nextWeek);

0 commit comments

Comments
 (0)