From 74a719ea13b99065dfc837701c3adfb3ed1bfbda Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 13 Dec 2024 20:57:52 +0900 Subject: [PATCH] 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 --- tests/Base/YasumiTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 08db7b5a1..76a114f63 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -145,7 +145,7 @@ public function testPrevious(): void { $country = 'Netherlands'; $name = 'liberationDay'; - $year_lower_limit = 1949; + $year_lower_limit = 1950; $year = self::numberBetween($year_lower_limit, self::YEAR_UPPER_BOUND); $holidays = Yasumi::create($country, $year);