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