Example #1
0
 public function testDeleteUser()
 {
     $user = $this->getUser();
     $this->om->expects($this->once())->method('remove')->with($this->equalTo($user));
     $this->om->expects($this->once())->method('flush');
     $this->userManager->deleteUser($user);
 }
 /**
  * {@inheritdoc}
  */
 public function deleteUser(UserInterface $user)
 {
     if ($user instanceof UserWrapped) {
         parent::deleteUser($user->getInterfacedUser());
         return;
     }
     parent::deleteUser($user);
 }
 /**
  * {@inheritdoc}
  */
 public function delete($entity, $andFlush = true)
 {
     parent::deleteUser($entity);
 }