- public function testWithInvalidUser()
- {
- $user = new User();
- $user->setEnabled(false);
-
- $event = new FilterUserResponseEvent(
- $user,
- $this->request,
- $this->response
- );
-
- $this->em->expects($this->never())->method('persist');
- $this->em->expects($this->never())->method('flush');
-
- $this->dispatcher->dispatch(
- FOSUserEvents::REGISTRATION_COMPLETED,
- $event
- );
- }
-