diff --git a/tests/Portugal/PortugalTest.php b/tests/Portugal/PortugalTest.php index e452b042e..161823a60 100644 --- a/tests/Portugal/PortugalTest.php +++ b/tests/Portugal/PortugalTest.php @@ -54,7 +54,6 @@ public function testOfficialHolidays(): void 'immaculateConception', 'christmasDay', '25thApril', - 'restorationOfIndependence', 'portugalDay', ]; @@ -66,6 +65,10 @@ public function testOfficialHolidays(): void $holidays[] = 'portugueseRepublic'; } + if (($this->year >= 1850 && $this->year <= 2012) || $this->year >= 2016) { + $holidays[] = 'restorationOfIndependence'; + } + $this->assertDefinedHolidays($holidays, self::REGION, $this->year, Holiday::TYPE_OFFICIAL); }