Exemple #1
0
 /**
  * @Then I should be successfully registered
  */
 public function iShouldBeRegistered()
 {
     expect($this->registerPage->wasRegistrationSuccessful())->toBe(true);
 }
 function it_checks_if_account_registration_was_not_successful(RegisterPageInterface $registerPage)
 {
     $registerPage->wasRegistrationSuccessful()->willReturn(false);
     $this->shouldThrow(FailureException::class)->during('iShouldBeRegistered');
 }