diff options
Diffstat (limited to 'tests/Wallabag/UserBundle')
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php b/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php index 9e33cdca..6e37cfc4 100644 --- a/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php +++ b/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php | |||
@@ -4,6 +4,7 @@ namespace Tests\Wallabag\UserBundle\EventListener; | |||
4 | 4 | ||
5 | use Monolog\Handler\TestHandler; | 5 | use Monolog\Handler\TestHandler; |
6 | use Monolog\Logger; | 6 | use Monolog\Logger; |
7 | use PHPUnit\Framework\TestCase; | ||
7 | use Symfony\Component\EventDispatcher\EventDispatcher; | 8 | use Symfony\Component\EventDispatcher\EventDispatcher; |
8 | use Symfony\Component\HttpFoundation\Request; | 9 | use Symfony\Component\HttpFoundation\Request; |
9 | use Symfony\Component\HttpFoundation\RequestStack; | 10 | use Symfony\Component\HttpFoundation\RequestStack; |
@@ -11,7 +12,7 @@ use Symfony\Component\Security\Core\AuthenticationEvents; | |||
11 | use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent; | 12 | use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent; |
12 | use Wallabag\UserBundle\EventListener\AuthenticationFailureListener; | 13 | use Wallabag\UserBundle\EventListener\AuthenticationFailureListener; |
13 | 14 | ||
14 | class AuthenticationFailureListenerTest extends \PHPUnit_Framework_TestCase | 15 | class AuthenticationFailureListenerTest extends TestCase |
15 | { | 16 | { |
16 | private $requestStack; | 17 | private $requestStack; |
17 | private $logHandler; | 18 | private $logHandler; |
diff --git a/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php b/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php index e5a145b8..2b540fdf 100644 --- a/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php +++ b/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php | |||
@@ -4,6 +4,7 @@ namespace Tests\Wallabag\UserBundle\EventListener; | |||
4 | 4 | ||
5 | use FOS\UserBundle\Event\FilterUserResponseEvent; | 5 | use FOS\UserBundle\Event\FilterUserResponseEvent; |
6 | use FOS\UserBundle\FOSUserEvents; | 6 | use FOS\UserBundle\FOSUserEvents; |
7 | use PHPUnit\Framework\TestCase; | ||
7 | use Symfony\Component\EventDispatcher\EventDispatcher; | 8 | use Symfony\Component\EventDispatcher\EventDispatcher; |
8 | use Symfony\Component\HttpFoundation\Request; | 9 | use Symfony\Component\HttpFoundation\Request; |
9 | use Symfony\Component\HttpFoundation\Response; | 10 | use Symfony\Component\HttpFoundation\Response; |
@@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\Config; | |||
11 | use Wallabag\UserBundle\Entity\User; | 12 | use Wallabag\UserBundle\Entity\User; |
12 | use Wallabag\UserBundle\EventListener\CreateConfigListener; | 13 | use Wallabag\UserBundle\EventListener\CreateConfigListener; |
13 | 14 | ||
14 | class CreateConfigListenerTest extends \PHPUnit_Framework_TestCase | 15 | class CreateConfigListenerTest extends TestCase |
15 | { | 16 | { |
16 | private $em; | 17 | private $em; |
17 | private $listener; | 18 | private $listener; |
diff --git a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php index 7381ccf1..f39fa60e 100644 --- a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php +++ b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\UserBundle\Mailer; | 3 | namespace Tests\Wallabag\UserBundle\Mailer; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Wallabag\UserBundle\Entity\User; | 6 | use Wallabag\UserBundle\Entity\User; |
6 | use Wallabag\UserBundle\Mailer\AuthCodeMailer; | 7 | use Wallabag\UserBundle\Mailer\AuthCodeMailer; |
7 | 8 | ||
@@ -21,7 +22,7 @@ final class CountableMemorySpool extends \Swift_MemorySpool implements \Countabl | |||
21 | } | 22 | } |
22 | } | 23 | } |
23 | 24 | ||
24 | class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase | 25 | class AuthCodeMailerTest extends TestCase |
25 | { | 26 | { |
26 | protected $mailer; | 27 | protected $mailer; |
27 | protected $spool; | 28 | protected $spool; |