/** * @Then I should be notified about success */ public function iShouldBeNotifiedAboutSuccess() { expect($this->countryIndexPage->hasSuccessMessage())->toBe(true); expect($this->countryIndexPage->isSuccessfullyCreated())->toBe(true); }
function it_throws_not_equal_exception_if_successful_message_does_not_appear(IndexPageInterface $countryIndexPage) { $countryIndexPage->hasSuccessMessage()->willReturn(true); $countryIndexPage->isSuccessfullyCreated()->willReturn(false); $this->shouldThrow(NotEqualException::class)->during('iShouldBeNotifiedAboutSuccess'); }
function it_throws_an_exception_if_resource_was_not_successfully_created(IndexPageInterface $indexPage) { $indexPage->hasSuccessMessage()->willReturn(true); $indexPage->isSuccessfullyCreated()->willReturn(false); $this->shouldThrow(NotEqualException::class)->during('iShouldBeNotifiedAboutSuccess'); }