/** * @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 first name as :firstName * @When I do not specify the first name */ public function iSpecifyTheFirstName($firstName = null) { $this->registerPage->specifyFirstName($firstName); }