/** * @Then the code field should be disabled */ public function theCodeFieldShouldBeDisabled() { Assert::true($this->updatePage->isCodeFieldDisabled(), 'Code field should be disabled but is not'); }
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'); }