Exemplo n.º 1
0
 /**
  * @Then I should be notified about success
  */
 public function iShouldBeNotifiedAboutSuccess()
 {
     expect($this->countryIndexPage->hasSuccessMessage())->toBe(true);
     expect($this->countryIndexPage->isSuccessfullyCreated())->toBe(true);
 }
Exemplo n.º 2
0
 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');
 }
Exemplo n.º 3
0
 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');
 }