예제 #1
0
 /**
  * @param RacesTable $racesTable
  * @return bool
  */
 public function requiresDmAgreement(RacesTable $racesTable)
 {
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     return $racesTable->requiresDmAgreement($this->getRaceCode(), $this->getSubraceCode());
 }
 /**
  * @test
  * @dataProvider provideRequirementOfDmForRace
  *
  * @param string $race
  * @param string $subrace
  * @param bool $requiredDmAgreement
  */
 public function I_can_detect_requirement_of_dm_agreement_of_any_race($race, $subrace, $requiredDmAgreement)
 {
     $racesTable = new RacesTable();
     self::assertSame($requiredDmAgreement, $racesTable->requiresDmAgreement(RaceCode::getIt($race), SubRaceCode::getIt($subrace)));
 }