/** * @Given I log in as :email with :password password */ public function iLogInAsWithPassword($email, $password) { $this->loginPage->open(); $this->loginPage->specifyUserName($email); $this->loginPage->specifyPassword($password); $this->loginPage->logIn(); }
/** * @When I specify the user name as :userName * @When I do not specify the user name */ public function iSpecifyTheUserName($userName = null) { $this->loginPage->specifyUserName($userName); }