コード例 #1
0
ファイル: UserContext.php プロジェクト: ahmadrabie/Sylius
 /**
  * @Then I should be successfully registered
  */
 public function iShouldBeRegistered()
 {
     expect($this->registerPage->wasRegistrationSuccessful())->toBe(true);
 }
コード例 #2
0
ファイル: UserContextSpec.php プロジェクト: ahmadrabie/Sylius
 function it_checks_if_account_registration_was_not_successful(RegisterPageInterface $registerPage)
 {
     $registerPage->wasRegistrationSuccessful()->willReturn(false);
     $this->shouldThrow(FailureException::class)->during('iShouldBeRegistered');
 }