/** * @Then /^(this country) should be enabled$/ */ public function thisCountryShouldBeEnabled(CountryInterface $country) { $this->indexPage->open(); Assert::true($this->indexPage->isCountryEnabled($country), sprintf('Country %s should be enabled but it is not', $country->getCode())); }
function it_throws_not_equal_exception_if_country_has_not_proper_status(IndexPageInterface $countryIndexPage, CountryInterface $country) { $countryIndexPage->isCountryDisabled($country)->willReturn(false); $countryIndexPage->isCountryEnabled($country)->willReturn(false); $this->shouldThrow(\InvalidArgumentException::class)->during('thisCountryShouldBeEnabled', [$country]); $this->shouldThrow(\InvalidArgumentException::class)->during('thisCountryShouldBeDisabled', [$country]); }