diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-12-16 22:38:07 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-12-18 13:29:33 +0100 |
commit | 4b6942d2d8555b0dca7f0b8d521a87415ff81e7c (patch) | |
tree | cab72a16c7040a40aa1860050cb773f0b2010f7c /tests/Wallabag | |
parent | 26e2f07419c9a16c2a304baa6d2cd36d6dddcd80 (diff) | |
download | wallabag-4b6942d2d8555b0dca7f0b8d521a87415ff81e7c.tar.gz wallabag-4b6942d2d8555b0dca7f0b8d521a87415ff81e7c.tar.zst wallabag-4b6942d2d8555b0dca7f0b8d521a87415ff81e7c.zip |
Add missing TestCase namespace
Diffstat (limited to 'tests/Wallabag')
5 files changed, 10 insertions, 5 deletions
diff --git a/tests/Wallabag/CoreBundle/Event/Listener/LocaleListenerTest.php b/tests/Wallabag/CoreBundle/Event/Listener/LocaleListenerTest.php index 0dbd9f70..bc35d100 100644 --- a/tests/Wallabag/CoreBundle/Event/Listener/LocaleListenerTest.php +++ b/tests/Wallabag/CoreBundle/Event/Listener/LocaleListenerTest.php | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Event\Listener; | 3 | namespace Tests\Wallabag\CoreBundle\Event\Listener; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Symfony\Component\EventDispatcher\EventDispatcher; | 6 | use Symfony\Component\EventDispatcher\EventDispatcher; |
6 | use Symfony\Component\HttpFoundation\Request; | 7 | use Symfony\Component\HttpFoundation\Request; |
7 | use Symfony\Component\HttpFoundation\Session\Session; | 8 | use Symfony\Component\HttpFoundation\Session\Session; |
@@ -11,7 +12,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface; | |||
11 | use Symfony\Component\HttpKernel\KernelEvents; | 12 | use Symfony\Component\HttpKernel\KernelEvents; |
12 | use Wallabag\CoreBundle\Event\Listener\LocaleListener; | 13 | use Wallabag\CoreBundle\Event\Listener\LocaleListener; |
13 | 14 | ||
14 | class LocaleListenerTest extends \PHPUnit_Framework_TestCase | 15 | class LocaleListenerTest extends TestCase |
15 | { | 16 | { |
16 | public function testWithoutSession() | 17 | public function testWithoutSession() |
17 | { | 18 | { |
diff --git a/tests/Wallabag/CoreBundle/Event/Listener/UserLocaleListenerTest.php b/tests/Wallabag/CoreBundle/Event/Listener/UserLocaleListenerTest.php index 5ffe1ca6..93edfde8 100644 --- a/tests/Wallabag/CoreBundle/Event/Listener/UserLocaleListenerTest.php +++ b/tests/Wallabag/CoreBundle/Event/Listener/UserLocaleListenerTest.php | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Event\Listener; | 3 | namespace Tests\Wallabag\CoreBundle\Event\Listener; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Symfony\Component\HttpFoundation\Request; | 6 | use Symfony\Component\HttpFoundation\Request; |
6 | use Symfony\Component\HttpFoundation\Session\Session; | 7 | use Symfony\Component\HttpFoundation\Session\Session; |
7 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; | 8 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; |
@@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\Config; | |||
11 | use Wallabag\CoreBundle\Event\Listener\UserLocaleListener; | 12 | use Wallabag\CoreBundle\Event\Listener\UserLocaleListener; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class UserLocaleListenerTest extends \PHPUnit_Framework_TestCase | 15 | class UserLocaleListenerTest extends TestCase |
15 | { | 16 | { |
16 | public function testWithLanguage() | 17 | public function testWithLanguage() |
17 | { | 18 | { |
diff --git a/tests/Wallabag/CoreBundle/Event/Subscriber/TablePrefixSubscriberTest.php b/tests/Wallabag/CoreBundle/Event/Subscriber/TablePrefixSubscriberTest.php index 64e3c6d9..06f85237 100644 --- a/tests/Wallabag/CoreBundle/Event/Subscriber/TablePrefixSubscriberTest.php +++ b/tests/Wallabag/CoreBundle/Event/Subscriber/TablePrefixSubscriberTest.php | |||
@@ -5,9 +5,10 @@ namespace Tests\Wallabag\CoreBundle\Event\Subscriber; | |||
5 | use Doctrine\Common\EventManager; | 5 | use Doctrine\Common\EventManager; |
6 | use Doctrine\ORM\Event\LoadClassMetadataEventArgs; | 6 | use Doctrine\ORM\Event\LoadClassMetadataEventArgs; |
7 | use Doctrine\ORM\Mapping\ClassMetadata; | 7 | use Doctrine\ORM\Mapping\ClassMetadata; |
8 | use PHPUnit\Framework\TestCase; | ||
8 | use Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber; | 9 | use Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber; |
9 | 10 | ||
10 | class TablePrefixSubscriberTest extends \PHPUnit_Framework_TestCase | 11 | class TablePrefixSubscriberTest extends TestCase |
11 | { | 12 | { |
12 | public function dataForPrefix() | 13 | public function dataForPrefix() |
13 | { | 14 | { |
diff --git a/tests/Wallabag/CoreBundle/Form/DataTransformer/StringToListTransformerTest.php b/tests/Wallabag/CoreBundle/Form/DataTransformer/StringToListTransformerTest.php index 0ec98c1f..ef058a8c 100644 --- a/tests/Wallabag/CoreBundle/Form/DataTransformer/StringToListTransformerTest.php +++ b/tests/Wallabag/CoreBundle/Form/DataTransformer/StringToListTransformerTest.php | |||
@@ -2,9 +2,10 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Form\DataTransformer; | 3 | namespace Tests\Wallabag\CoreBundle\Form\DataTransformer; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer; | 6 | use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer; |
6 | 7 | ||
7 | class StringToListTransformerTest extends \PHPUnit_Framework_TestCase | 8 | class StringToListTransformerTest extends TestCase |
8 | { | 9 | { |
9 | /** | 10 | /** |
10 | * @dataProvider transformProvider | 11 | * @dataProvider transformProvider |
diff --git a/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php b/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php index 5aee9f5c..1173fc3d 100644 --- a/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php +++ b/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php | |||
@@ -5,11 +5,12 @@ namespace Tests\Wallabag\CoreBundle\GuzzleSiteAuthenticator; | |||
5 | use Graby\SiteConfig\SiteConfig as GrabySiteConfig; | 5 | use Graby\SiteConfig\SiteConfig as GrabySiteConfig; |
6 | use Monolog\Handler\TestHandler; | 6 | use Monolog\Handler\TestHandler; |
7 | use Monolog\Logger; | 7 | use Monolog\Logger; |
8 | use PHPUnit\Framework\TestCase; | ||
8 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; | 9 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; |
9 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | 10 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; |
10 | use Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder; | 11 | use Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder; |
11 | 12 | ||
12 | class GrabySiteConfigBuilderTest extends \PHPUnit_Framework_TestCase | 13 | class GrabySiteConfigBuilderTest extends TestCase |
13 | { | 14 | { |
14 | /** @var \Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder */ | 15 | /** @var \Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder */ |
15 | protected $builder; | 16 | protected $builder; |