Skip to content

Commit f3c55da

Browse files
committed
test: fix official holidays tests for Portugal
The Restoration of Independence Day was considered to be observed at any time, however it is only observed between 1850 and 2012, and since 2016. Signed-off-by: Sacha Telgenhof <[email protected]>
1 parent 41688cc commit f3c55da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/Portugal/PortugalTest.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public function testOfficialHolidays(): void
5454
'immaculateConception',
5555
'christmasDay',
5656
'25thApril',
57-
'restorationOfIndependence',
5857
'portugalDay',
5958
];
6059

@@ -66,6 +65,10 @@ public function testOfficialHolidays(): void
6665
$holidays[] = 'portugueseRepublic';
6766
}
6867

68+
if (($this->year >= 1850 && $this->year <= 2012) || $this->year >= 2016) {
69+
$holidays[] = 'restorationOfIndependence';
70+
}
71+
6972
$this->assertDefinedHolidays($holidays, self::REGION, $this->year, Holiday::TYPE_OFFICIAL);
7073
}
7174

0 commit comments

Comments
 (0)