Skip to content

Commit

Permalink
Fix for Observed Holidays
Browse files Browse the repository at this point in the history
Updated rules for Observed Holidays tests
  • Loading branch information
AngelinCalu authored Jan 5, 2017
1 parent 5be2a97 commit eb2ced7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/Romania/RomaniaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb2ced7

Please sign in to comment.