/** * @When I change the password of user :customer to :newPassword */ public function iChangeThePasswordOfUserTo(CustomerInterface $customer, $newPassword) { $this->updatePage->open(['id' => $customer->getId()]); $this->updatePage->changePassword($newPassword); $this->updatePage->saveChanges(); }
/** * @When I change my password to :password */ public function iSpecifyMyPasswordAs($password) { $this->updatePage->changePassword($password); }