use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Wallabag\CoreBundle\Entity\Config;
-use Wallabag\UserBundle\EventListener\CreateConfigListener;
use Wallabag\UserBundle\Entity\User;
+use Wallabag\UserBundle\EventListener\CreateConfigListener;
class CreateConfigListenerTest extends \PHPUnit_Framework_TestCase
{
20,
50,
'fr',
+ 1,
+ 1,
1
);
$this->response = Response::create();
}
- 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
- );
- }
-
public function testWithValidUser()
{
$user = new User();