コード例 #1
0
ファイル: UserContext.php プロジェクト: ahmadrabie/Sylius
 /**
  * @Given /^I log in as "([^"]*)" with "([^"]*)" password$/
  */
 public function iLogInAs($login, $password)
 {
     $this->loginPage->open();
     $this->loginPage->logIn($login, $password);
 }
コード例 #2
0
ファイル: UserContextSpec.php プロジェクト: ahmadrabie/Sylius
 function it_logs_in_user_with_given_credentials(LoginPageInterface $loginPage)
 {
     $loginPage->open()->shouldBeCalled();
     $loginPage->logIn('*****@*****.**', 'password123')->shouldBeCalled();
     $this->iLogInAs('*****@*****.**', 'password123');
 }