/** * @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(); }
/** * @When I specify the email as :email * @When I do not specify the email */ public function iSpecifyTheEmail($email = null) { $this->registerPage->specifyEmail($email); }