/** * @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); }
/** * @Given his account was deleted */ public function hisAccountWasDeleted() { $user = $this->sharedStorage->get('user'); $this->userRepository->remove($user); }