Skip to content

Commit 74a719e

Browse files
committed
test: fix test for the previous function
The unit test for the `previous` function uses an example holiday that has a lower limit. If the randomized year is exactly the same as the lower limit, the test fails as there is no previous date. Increased the lower limit to avoid this situation. Signed-off-by: Sacha Telgenhof <me@sachatelgenhof.com>
1 parent f99f1bd commit 74a719e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Base/YasumiTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function testPrevious(): void
145145
{
146146
$country = 'Netherlands';
147147
$name = 'liberationDay';
148-
$year_lower_limit = 1949;
148+
$year_lower_limit = 1950;
149149
$year = self::numberBetween($year_lower_limit, self::YEAR_UPPER_BOUND);
150150

151151
$holidays = Yasumi::create($country, $year);

0 commit comments

Comments
 (0)