diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-11-01 23:42:52 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-11-07 14:16:13 +0100 |
commit | 8a493541fa4911233fe9186e88371d17cb9fd7db (patch) | |
tree | cd4011716fbf85b29b54d33e0ca17920cb5fe6d4 /src/Wallabag/CoreBundle/Tests/EventListener | |
parent | 735068d1814a4b7a688e1d19cd17b13e8c5da3eb (diff) | |
download | wallabag-8a493541fa4911233fe9186e88371d17cb9fd7db.tar.gz wallabag-8a493541fa4911233fe9186e88371d17cb9fd7db.tar.zst wallabag-8a493541fa4911233fe9186e88371d17cb9fd7db.zip |
Re-enable test on doctrine command
It will slow down the whole test suite (because it'll use doctrine command).
Remove unecessary `KernelTestCase`.
Also rename `AbstractControllerTest` to `WallabagApiTestCase` for consistency.
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/EventListener')
3 files changed, 3 insertions, 6 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php b/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php index 356a411e..d89bee04 100644 --- a/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php +++ b/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php | |||
@@ -2,7 +2,6 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Tests\EventListener; | 3 | namespace Wallabag\CoreBundle\Tests\EventListener; |
4 | 4 | ||
5 | use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | ||
6 | use Symfony\Component\EventDispatcher\EventDispatcher; | 5 | use Symfony\Component\EventDispatcher\EventDispatcher; |
7 | use Symfony\Component\HttpFoundation\Request; | 6 | use Symfony\Component\HttpFoundation\Request; |
8 | use Symfony\Component\HttpKernel\KernelEvents; | 7 | use Symfony\Component\HttpKernel\KernelEvents; |
@@ -12,7 +11,7 @@ use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; | |||
12 | use Symfony\Component\HttpFoundation\Session\Session; | 11 | use Symfony\Component\HttpFoundation\Session\Session; |
13 | use Wallabag\CoreBundle\EventListener\LocaleListener; | 12 | use Wallabag\CoreBundle\EventListener\LocaleListener; |
14 | 13 | ||
15 | class LocaleListenerTest extends KernelTestCase | 14 | class LocaleListenerTest extends \PHPUnit_Framework_TestCase |
16 | { | 15 | { |
17 | private function getEvent(Request $request) | 16 | private function getEvent(Request $request) |
18 | { | 17 | { |
diff --git a/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php b/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php index df94fad2..31283399 100644 --- a/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php +++ b/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php | |||
@@ -2,7 +2,6 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Tests\EventListener; | 3 | namespace Wallabag\CoreBundle\Tests\EventListener; |
4 | 4 | ||
5 | use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | ||
6 | use Symfony\Component\EventDispatcher\EventDispatcher; | 5 | use Symfony\Component\EventDispatcher\EventDispatcher; |
7 | use Symfony\Component\HttpFoundation\Request; | 6 | use Symfony\Component\HttpFoundation\Request; |
8 | use Symfony\Component\HttpFoundation\Response; | 7 | use Symfony\Component\HttpFoundation\Response; |
@@ -12,7 +11,7 @@ use Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener; | |||
12 | use Wallabag\CoreBundle\Entity\Config; | 11 | use Wallabag\CoreBundle\Entity\Config; |
13 | use Wallabag\UserBundle\Entity\User; | 12 | use Wallabag\UserBundle\Entity\User; |
14 | 13 | ||
15 | class RegistrationConfirmedListenerTest extends KernelTestCase | 14 | class RegistrationConfirmedListenerTest extends \PHPUnit_Framework_TestCase |
16 | { | 15 | { |
17 | private $em; | 16 | private $em; |
18 | private $listener; | 17 | private $listener; |
diff --git a/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php b/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php index e8a65fbf..80ddb457 100644 --- a/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php +++ b/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php | |||
@@ -2,7 +2,6 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Tests\EventListener; | 3 | namespace Wallabag\CoreBundle\Tests\EventListener; |
4 | 4 | ||
5 | use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | ||
6 | use Symfony\Component\HttpFoundation\Request; | 5 | use Symfony\Component\HttpFoundation\Request; |
7 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; | 6 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; |
8 | use Symfony\Component\HttpFoundation\Session\Session; | 7 | use Symfony\Component\HttpFoundation\Session\Session; |
@@ -12,7 +11,7 @@ use Wallabag\CoreBundle\EventListener\UserLocaleListener; | |||
12 | use Wallabag\CoreBundle\Entity\Config; | 11 | use Wallabag\CoreBundle\Entity\Config; |
13 | use Wallabag\UserBundle\Entity\User; | 12 | use Wallabag\UserBundle\Entity\User; |
14 | 13 | ||
15 | class UserLocaleListenerTest extends KernelTestCase | 14 | class UserLocaleListenerTest extends \PHPUnit_Framework_TestCase |
16 | { | 15 | { |
17 | public function testWithLanguage() | 16 | public function testWithLanguage() |
18 | { | 17 | { |