Skip to content

Commit

Permalink
Fixed the name translation test for the Restoration of Independence D…
Browse files Browse the repository at this point in the history
…ay (Portugal). The test didn't account for the fact that this holiday was abolished and reinstated at some time.

Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed Jan 18, 2018
1 parent 6ed2295 commit 44642d9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/Portugal/RestorationOfIndependenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ public function testHolidayBeforeEstablishment()
*/
public function testTranslation()
{
$year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR);
$this->assertTranslatedHolidayName(
self::REGION,
self::HOLIDAY,
$year,
[self::LOCALE => 'Restauração da Independência']
);
$year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR, self::HOLIDAY_YEAR_ABOLISHED - 1);
$this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year,
[self::LOCALE => 'Restauração da Independência']);

$year = $this->generateRandomYear(self::HOLIDAY_YEAR_RESTORED);
$this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year,
[self::LOCALE => 'Restauração da Independência']);
}

/**
Expand Down

0 comments on commit 44642d9

Please sign in to comment.