/** * @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 password as :password * @When I do not specify the password */ public function iSpecifyThePasswordAs($password = null) { $this->registerPage->specifyPassword($password); $this->sharedStorage->set('password', $password); }