From 75125b9d4a01270036064f6fa439cee45342f326 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 13 Dec 2024 21:20:10 +0900 Subject: [PATCH] test: fix official holidays tests for Portugal All Saints Day was incorrectly set to be present between 2013 and 2015. This is incorrect as between 2013 and 2015 (inclusive) this holiday did not happen due to government deliberation. Signed-off-by: Sacha Telgenhof --- tests/Portugal/PortugalTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Portugal/PortugalTest.php b/tests/Portugal/PortugalTest.php index 0e9ddc178..e452b042e 100644 --- a/tests/Portugal/PortugalTest.php +++ b/tests/Portugal/PortugalTest.php @@ -51,7 +51,6 @@ public function testOfficialHolidays(): void 'easter', 'goodFriday', 'assumptionOfMary', - 'allSaintsDay', 'immaculateConception', 'christmasDay', '25thApril', @@ -59,6 +58,10 @@ public function testOfficialHolidays(): void 'portugalDay', ]; + if ($this->year <= 2012 || $this->year >= 2016) { + $holidays[] = 'allSaintsDay'; + } + if (($this->year >= 1910 && $this->year <= 2012) || $this->year >= 2016) { $holidays[] = 'portugueseRepublic'; }