diff --git a/src/Actions/Belgium.php b/src/Actions/Belgium.php index 311a0e9cf..5c71cdc58 100644 --- a/src/Actions/Belgium.php +++ b/src/Actions/Belgium.php @@ -37,12 +37,12 @@ protected function fixedHolidays(): array { $dates = [ 'Nieuwjaar' => '01-01', - 'Dag van de Arbeid' => '05-01', - 'Nationale Feestdag' => '07-21', - 'OLV Hemelvaart' => '08-15', - 'Allerheiligen' => '11-01', + 'Dag van de Arbeid' => '01-01', + 'Nationale Feestdag' => '21-07', + 'OLV Hemelvaart' => '15-08', + 'Allerheiligen' => '01-11', 'Wapenstilstand' => '11-11', - 'Kerstmis' => '12-25', + 'Kerstmis' => '25-12', ]; foreach ($dates as $name => $date) { @@ -58,9 +58,9 @@ protected function variableHolidays(): array $easter = CarbonImmutable::createFromTimestampUTC(easter_date($this->year)); return [ - 'Paasmaandag' => $easter->addDay()->format('m-d-Y'), - 'OH Hemelvaart' => $easter->addDays(39)->format('m-d-Y'), - 'Pinkstermaandag' => $easter->addDays(50)->format('m-d-Y'), + 'Paasmaandag' => $easter->addDay()->format('d-m-Y'), + 'OH Hemelvaart' => $easter->addDays(39)->format('d-m-Y'), + 'Pinkstermaandag' => $easter->addDays(50)->format('d-m-Y'), ]; } } diff --git a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2022.snap b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2022.snap index cb3cfc36f..3d0974e0c 100644 --- a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2022.snap +++ b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2022.snap @@ -3,40 +3,40 @@ "name": "Nieuwjaar", "date": "01-01-2022" }, - { - "name": "Paasmaandag", - "date": "04-17-2022" - }, { "name": "Dag van de Arbeid", - "date": "05-01-2022" + "date": "01-01-2022" }, { - "name": "OH Hemelvaart", - "date": "05-25-2022" + "name": "Allerheiligen", + "date": "01-11-2022" }, { "name": "Pinkstermaandag", - "date": "06-05-2022" + "date": "05-06-2022" }, { - "name": "Nationale Feestdag", - "date": "07-21-2022" + "name": "Wapenstilstand", + "date": "11-11-2022" }, { "name": "OLV Hemelvaart", - "date": "08-15-2022" + "date": "15-08-2022" }, { - "name": "Allerheiligen", - "date": "11-01-2022" + "name": "Paasmaandag", + "date": "17-04-2022" }, { - "name": "Wapenstilstand", - "date": "11-11-2022" + "name": "Nationale Feestdag", + "date": "21-07-2022" + }, + { + "name": "OH Hemelvaart", + "date": "25-05-2022" }, { "name": "Kerstmis", - "date": "12-25-2022" + "date": "25-12-2022" } ] \ No newline at end of file diff --git a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2023.snap b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2023.snap index 423dc33e2..bbd37a43e 100644 --- a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2023.snap +++ b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2023.snap @@ -3,40 +3,40 @@ "name": "Nieuwjaar", "date": "01-01-2023" }, - { - "name": "Paasmaandag", - "date": "04-09-2023" - }, { "name": "Dag van de Arbeid", - "date": "05-01-2023" + "date": "01-01-2023" }, { - "name": "OH Hemelvaart", - "date": "05-17-2023" + "name": "Allerheiligen", + "date": "01-11-2023" }, { - "name": "Pinkstermaandag", - "date": "05-28-2023" + "name": "Paasmaandag", + "date": "09-04-2023" }, { - "name": "Nationale Feestdag", - "date": "07-21-2023" + "name": "Wapenstilstand", + "date": "11-11-2023" }, { "name": "OLV Hemelvaart", - "date": "08-15-2023" + "date": "15-08-2023" }, { - "name": "Allerheiligen", - "date": "11-01-2023" + "name": "OH Hemelvaart", + "date": "17-05-2023" }, { - "name": "Wapenstilstand", - "date": "11-11-2023" + "name": "Nationale Feestdag", + "date": "21-07-2023" }, { "name": "Kerstmis", - "date": "12-25-2023" + "date": "25-12-2023" + }, + { + "name": "Pinkstermaandag", + "date": "28-05-2023" } ] \ No newline at end of file diff --git a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2025.snap b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2025.snap index 423dc33e2..88b8bd1e4 100644 --- a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2025.snap +++ b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_2025.snap @@ -1,42 +1,42 @@ [ { "name": "Nieuwjaar", - "date": "01-01-2023" - }, - { - "name": "Paasmaandag", - "date": "04-09-2023" + "date": "01-01-2025" }, { "name": "Dag van de Arbeid", - "date": "05-01-2023" + "date": "01-01-2025" }, { - "name": "OH Hemelvaart", - "date": "05-17-2023" + "name": "Allerheiligen", + "date": "01-11-2025" }, { "name": "Pinkstermaandag", - "date": "05-28-2023" + "date": "08-06-2025" }, { - "name": "Nationale Feestdag", - "date": "07-21-2023" + "name": "Wapenstilstand", + "date": "11-11-2025" }, { "name": "OLV Hemelvaart", - "date": "08-15-2023" + "date": "15-08-2025" }, { - "name": "Allerheiligen", - "date": "11-01-2023" + "name": "Paasmaandag", + "date": "20-04-2025" }, { - "name": "Wapenstilstand", - "date": "11-11-2023" + "name": "Nationale Feestdag", + "date": "21-07-2025" }, { "name": "Kerstmis", - "date": "12-25-2023" + "date": "25-12-2025" + }, + { + "name": "OH Hemelvaart", + "date": "28-05-2025" } ] \ No newline at end of file diff --git a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_another_year_and_a_specific_country.snap b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_another_year_and_a_specific_country.snap index 8afb9aa5e..f5ac5e4b6 100644 --- a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_another_year_and_a_specific_country.snap +++ b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_another_year_and_a_specific_country.snap @@ -3,40 +3,40 @@ "name": "Nieuwjaar", "date": "01-01-2024" }, - { - "name": "Paasmaandag", - "date": "03-31-2024" - }, { "name": "Dag van de Arbeid", - "date": "05-01-2024" + "date": "01-01-2024" }, { - "name": "OH Hemelvaart", - "date": "05-08-2024" + "name": "Allerheiligen", + "date": "01-11-2024" }, { - "name": "Pinkstermaandag", - "date": "05-19-2024" + "name": "OH Hemelvaart", + "date": "08-05-2024" }, { - "name": "Nationale Feestdag", - "date": "07-21-2024" + "name": "Wapenstilstand", + "date": "11-11-2024" }, { "name": "OLV Hemelvaart", - "date": "08-15-2024" + "date": "15-08-2024" }, { - "name": "Allerheiligen", - "date": "11-01-2024" + "name": "Pinkstermaandag", + "date": "19-05-2024" }, { - "name": "Wapenstilstand", - "date": "11-11-2024" + "name": "Nationale Feestdag", + "date": "21-07-2024" }, { "name": "Kerstmis", - "date": "12-25-2024" + "date": "25-12-2024" + }, + { + "name": "Paasmaandag", + "date": "31-03-2024" } ] \ No newline at end of file diff --git a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_the_current_year.snap b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_the_current_year.snap index 8afb9aa5e..f5ac5e4b6 100644 --- a/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_the_current_year.snap +++ b/tests/.pest/snapshots/HolidaysTest/it_can_get_all_holidays_of_the_current_year.snap @@ -3,40 +3,40 @@ "name": "Nieuwjaar", "date": "01-01-2024" }, - { - "name": "Paasmaandag", - "date": "03-31-2024" - }, { "name": "Dag van de Arbeid", - "date": "05-01-2024" + "date": "01-01-2024" }, { - "name": "OH Hemelvaart", - "date": "05-08-2024" + "name": "Allerheiligen", + "date": "01-11-2024" }, { - "name": "Pinkstermaandag", - "date": "05-19-2024" + "name": "OH Hemelvaart", + "date": "08-05-2024" }, { - "name": "Nationale Feestdag", - "date": "07-21-2024" + "name": "Wapenstilstand", + "date": "11-11-2024" }, { "name": "OLV Hemelvaart", - "date": "08-15-2024" + "date": "15-08-2024" }, { - "name": "Allerheiligen", - "date": "11-01-2024" + "name": "Pinkstermaandag", + "date": "19-05-2024" }, { - "name": "Wapenstilstand", - "date": "11-11-2024" + "name": "Nationale Feestdag", + "date": "21-07-2024" }, { "name": "Kerstmis", - "date": "12-25-2024" + "date": "25-12-2024" + }, + { + "name": "Paasmaandag", + "date": "31-03-2024" } ] \ No newline at end of file diff --git a/tests/HolidaysTest.php b/tests/HolidaysTest.php index 8086ed21f..12d0769fa 100644 --- a/tests/HolidaysTest.php +++ b/tests/HolidaysTest.php @@ -30,7 +30,7 @@ it('can get all holidays of 2025', function () { $holidays = Holidays::new() - ->year(2023) + ->year(2025) ->get(); expect($holidays)->toMatchSnapshot();