/** * @Then /^(this country) should be disabled$/ */ public function thisCountryShouldBeDisabled(CountryInterface $country) { $this->indexPage->open(); Assert::true($this->indexPage->isCountryDisabled($country), sprintf('Country %s should be disabled 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]); }