diff --git a/tests/Romania/RomaniaTest.php b/tests/Romania/RomaniaTest.php index 0de3076cf..9e48a53c8 100755 --- a/tests/Romania/RomaniaTest.php +++ b/tests/Romania/RomaniaTest.php @@ -50,9 +50,17 @@ public function testNationalHolidays() */ public function testObservedHolidays() { - $this->assertDefinedHolidays([ - 'constantinBrancusiDay', - ], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); + $ObservedHolidays = []; + + if ($this->year >= 2016) { + $ObservedHolidays[] = 'constantinBrancusiDay'; + } + + if ($this->year >= 1950 && $this->year <= 2016) { + $ObservedHolidays[] = 'childrensDay'; + } + + $this->assertDefinedHolidays($ObservedHolidays, self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } /** * Tests if all seasonal holidays in Romania are defined by the provider class