/** * {@inheritdoc} */ public function findByCustomer(CustomerInterface $customer) { return $this->createByCustomerIdQueryBuilder($customer->getId())->getQuery()->getResult(); }
/** * @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(); }