Пример #1
0
 /**
  * @When I register with email :email and password :password
  */
 public function iRegisterWithEmailAndPassword($email, $password)
 {
     $this->registerPage->open();
     $this->registerPage->specifyEmail($email);
     $this->registerPage->specifyPassword($password);
     $this->registerPage->verifyPassword($password);
     $this->registerPage->specifyFirstName('Carrot');
     $this->registerPage->specifyLastName('Ironfoundersson');
     $this->registerPage->register();
 }
Пример #2
0
 /**
  * @When I specify the last name as :lastName
  * @When I do not specify the last name
  */
 public function iSpecifyTheLastName($lastName = null)
 {
     $this->registerPage->specifyLastName($lastName);
 }