/** * @Then /^I should be notified that province code must be unique$/ */ public function iShouldBeNotifiedThatProvinceCodeMustBeUnique() { Assert::same($this->updatePage->getValidationMessage('code'), 'Province code must be unique.'); }
function it_throws_not_equal_exception_if_country_code_field_is_not_disabled(UpdatePageInterface $countryUpdatePage) { $countryUpdatePage->isCodeFieldDisabled()->willReturn(false); $this->shouldThrow(\InvalidArgumentException::class)->during('theCodeFieldShouldBeDisabled'); }
/** * @Then /^I should be notified that province code must be unique$/ */ public function iShouldBeNotifiedThatProvinceCodeMustBeUnique() { Assert::true($this->updatePage->checkValidationMessageFor('code', 'Province code must be unique.'), 'Unique code violation message should appear on page, but it does not.'); }
/** * @Then the code field should be disabled */ public function theCodeFieldShouldBeDisabled() { Assert::true($this->countryUpdatePage->isCodeFieldDisabled(), 'Code field should be disabled but is not'); }