/** * @Given the account of :email was deleted */ public function accountWasDeleted($email) { $user = $this->userRepository->findOneByEmail($email); $this->sharedStorage->set('customer', $user->getCustomer()); $this->userRepository->remove($user); }