diff options
Diffstat (limited to 'tests/Wallabag')
23 files changed, 46 insertions, 23 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 5c99e461..9a656dad 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | |||
@@ -5,6 +5,7 @@ namespace Tests\Wallabag\CoreBundle\Helper; | |||
5 | use Graby\Graby; | 5 | use Graby\Graby; |
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 Psr\Log\NullLogger; | 9 | use Psr\Log\NullLogger; |
9 | use Symfony\Component\Validator\ConstraintViolation; | 10 | use Symfony\Component\Validator\ConstraintViolation; |
10 | use Symfony\Component\Validator\ConstraintViolationList; | 11 | use Symfony\Component\Validator\ConstraintViolationList; |
@@ -15,7 +16,7 @@ use Wallabag\CoreBundle\Helper\ContentProxy; | |||
15 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; | 16 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; |
16 | use Wallabag\UserBundle\Entity\User; | 17 | use Wallabag\UserBundle\Entity\User; |
17 | 18 | ||
18 | class ContentProxyTest extends \PHPUnit_Framework_TestCase | 19 | class ContentProxyTest extends TestCase |
19 | { | 20 | { |
20 | private $fetchingErrorMessage = 'wallabag can\'t retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.'; | 21 | private $fetchingErrorMessage = 'wallabag can\'t retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.'; |
21 | 22 | ||
diff --git a/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php b/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php index 782c29c3..7398f235 100644 --- a/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php | |||
@@ -4,10 +4,11 @@ namespace Tests\Wallabag\CoreBundle\Helper; | |||
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 Psr\Log\NullLogger; | 8 | use Psr\Log\NullLogger; |
8 | use Wallabag\CoreBundle\Helper\CryptoProxy; | 9 | use Wallabag\CoreBundle\Helper\CryptoProxy; |
9 | 10 | ||
10 | class CryptoProxyTest extends \PHPUnit_Framework_TestCase | 11 | class CryptoProxyTest extends TestCase |
11 | { | 12 | { |
12 | public function testCrypto() | 13 | public function testCrypto() |
13 | { | 14 | { |
diff --git a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php index c61f65d0..0e1d296b 100644 --- a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php +++ b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php | |||
@@ -8,9 +8,10 @@ use GuzzleHttp\Stream\Stream; | |||
8 | use GuzzleHttp\Subscriber\Mock; | 8 | use GuzzleHttp\Subscriber\Mock; |
9 | use Monolog\Handler\TestHandler; | 9 | use Monolog\Handler\TestHandler; |
10 | use Monolog\Logger; | 10 | use Monolog\Logger; |
11 | use PHPUnit\Framework\TestCase; | ||
11 | use Wallabag\CoreBundle\Helper\DownloadImages; | 12 | use Wallabag\CoreBundle\Helper\DownloadImages; |
12 | 13 | ||
13 | class DownloadImagesTest extends \PHPUnit_Framework_TestCase | 14 | class DownloadImagesTest extends TestCase |
14 | { | 15 | { |
15 | public function dataForSuccessImage() | 16 | public function dataForSuccessImage() |
16 | { | 17 | { |
diff --git a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php index 7fd2ea2b..04e1a59c 100644 --- a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php | |||
@@ -2,13 +2,14 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Helper; | 3 | namespace Tests\Wallabag\CoreBundle\Helper; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; | 6 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; |
6 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | 7 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; |
7 | use Wallabag\CoreBundle\Entity\Config; | 8 | use Wallabag\CoreBundle\Entity\Config; |
8 | use Wallabag\CoreBundle\Helper\Redirect; | 9 | use Wallabag\CoreBundle\Helper\Redirect; |
9 | use Wallabag\UserBundle\Entity\User; | 10 | use Wallabag\UserBundle\Entity\User; |
10 | 11 | ||
11 | class RedirectTest extends \PHPUnit_Framework_TestCase | 12 | class RedirectTest extends TestCase |
12 | { | 13 | { |
13 | /** @var \PHPUnit_Framework_MockObject_MockObject */ | 14 | /** @var \PHPUnit_Framework_MockObject_MockObject */ |
14 | private $routerMock; | 15 | private $routerMock; |
diff --git a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php index c31af680..74b28bbb 100644 --- a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php | |||
@@ -4,6 +4,7 @@ namespace Tests\Wallabag\CoreBundle\Helper; | |||
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 Wallabag\CoreBundle\Entity\Config; | 8 | use Wallabag\CoreBundle\Entity\Config; |
8 | use Wallabag\CoreBundle\Entity\Entry; | 9 | use Wallabag\CoreBundle\Entity\Entry; |
9 | use Wallabag\CoreBundle\Entity\Tag; | 10 | use Wallabag\CoreBundle\Entity\Tag; |
@@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\TaggingRule; | |||
11 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; | 12 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | 15 | class RuleBasedTaggerTest extends TestCase |
15 | { | 16 | { |
16 | private $rulerz; | 17 | private $rulerz; |
17 | private $tagRepository; | 18 | private $tagRepository; |
diff --git a/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php b/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php index 475cd349..1285c99c 100644 --- a/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php +++ b/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php | |||
@@ -2,13 +2,14 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Helper; | 3 | namespace Tests\Wallabag\CoreBundle\Helper; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Wallabag\CoreBundle\Entity\Entry; | 6 | use Wallabag\CoreBundle\Entity\Entry; |
6 | use Wallabag\CoreBundle\Entity\Tag; | 7 | use Wallabag\CoreBundle\Entity\Tag; |
7 | use Wallabag\CoreBundle\Helper\TagsAssigner; | 8 | use Wallabag\CoreBundle\Helper\TagsAssigner; |
8 | use Wallabag\CoreBundle\Repository\TagRepository; | 9 | use Wallabag\CoreBundle\Repository\TagRepository; |
9 | use Wallabag\UserBundle\Entity\User; | 10 | use Wallabag\UserBundle\Entity\User; |
10 | 11 | ||
11 | class TagsAssignerTest extends \PHPUnit_Framework_TestCase | 12 | class TagsAssignerTest extends TestCase |
12 | { | 13 | { |
13 | public function testAssignTagsWithArrayAndExtraSpaces() | 14 | public function testAssignTagsWithArrayAndExtraSpaces() |
14 | { | 15 | { |
diff --git a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php b/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php index 74c645ef..b044a700 100644 --- a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php +++ b/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php | |||
@@ -2,12 +2,13 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Command; | 3 | namespace Tests\Wallabag\CoreBundle\Command; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
6 | use Symfony\Component\HttpFoundation\Request; | 7 | use Symfony\Component\HttpFoundation\Request; |
7 | use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; | 8 | use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; |
8 | use Wallabag\UserBundle\Entity\User; | 9 | use Wallabag\UserBundle\Entity\User; |
9 | 10 | ||
10 | class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase | 11 | class UsernameRssTokenConverterTest extends TestCase |
11 | { | 12 | { |
12 | public function testSupportsWithNoRegistry() | 13 | public function testSupportsWithNoRegistry() |
13 | { | 14 | { |
diff --git a/tests/Wallabag/CoreBundle/Tools/UtilsTest.php b/tests/Wallabag/CoreBundle/Tools/UtilsTest.php index 4521e485..347589dc 100644 --- a/tests/Wallabag/CoreBundle/Tools/UtilsTest.php +++ b/tests/Wallabag/CoreBundle/Tools/UtilsTest.php | |||
@@ -2,10 +2,11 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Tools; | 3 | namespace Tests\Wallabag\CoreBundle\Tools; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Symfony\Component\Finder\Finder; | 6 | use Symfony\Component\Finder\Finder; |
6 | use Wallabag\CoreBundle\Tools\Utils; | 7 | use Wallabag\CoreBundle\Tools\Utils; |
7 | 8 | ||
8 | class UtilsTest extends \PHPUnit_Framework_TestCase | 9 | class UtilsTest extends TestCase |
9 | { | 10 | { |
10 | /** | 11 | /** |
11 | * @dataProvider examples | 12 | * @dataProvider examples |
diff --git a/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php b/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php index 82336060..bb92f745 100644 --- a/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php +++ b/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php | |||
@@ -2,9 +2,10 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Twig; | 3 | namespace Tests\Wallabag\CoreBundle\Twig; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Wallabag\CoreBundle\Twig\WallabagExtension; | 6 | use Wallabag\CoreBundle\Twig\WallabagExtension; |
6 | 7 | ||
7 | class WallabagExtensionTest extends \PHPUnit_Framework_TestCase | 8 | class WallabagExtensionTest extends TestCase |
8 | { | 9 | { |
9 | public function testRemoveWww() | 10 | public function testRemoveWww() |
10 | { | 11 | { |
diff --git a/tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php b/tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php index 52b98a0b..b2141c04 100644 --- a/tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php +++ b/tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php | |||
@@ -3,11 +3,12 @@ | |||
3 | namespace Tests\Wallabag\ImportBundle\Consumer\AMQP; | 3 | namespace Tests\Wallabag\ImportBundle\Consumer\AMQP; |
4 | 4 | ||
5 | use PhpAmqpLib\Message\AMQPMessage; | 5 | use PhpAmqpLib\Message\AMQPMessage; |
6 | use PHPUnit\Framework\TestCase; | ||
6 | use Wallabag\CoreBundle\Entity\Entry; | 7 | use Wallabag\CoreBundle\Entity\Entry; |
7 | use Wallabag\ImportBundle\Consumer\AMQPEntryConsumer; | 8 | use Wallabag\ImportBundle\Consumer\AMQPEntryConsumer; |
8 | use Wallabag\UserBundle\Entity\User; | 9 | use Wallabag\UserBundle\Entity\User; |
9 | 10 | ||
10 | class AMQPEntryConsumerTest extends \PHPUnit_Framework_TestCase | 11 | class AMQPEntryConsumerTest extends TestCase |
11 | { | 12 | { |
12 | public function testMessageOk() | 13 | public function testMessageOk() |
13 | { | 14 | { |
diff --git a/tests/Wallabag/ImportBundle/Consumer/RedisEntryConsumerTest.php b/tests/Wallabag/ImportBundle/Consumer/RedisEntryConsumerTest.php index 9506ff63..61337e47 100644 --- a/tests/Wallabag/ImportBundle/Consumer/RedisEntryConsumerTest.php +++ b/tests/Wallabag/ImportBundle/Consumer/RedisEntryConsumerTest.php | |||
@@ -2,11 +2,12 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\ImportBundle\Consumer\AMQP; | 3 | namespace Tests\Wallabag\ImportBundle\Consumer\AMQP; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Wallabag\CoreBundle\Entity\Entry; | 6 | use Wallabag\CoreBundle\Entity\Entry; |
6 | use Wallabag\ImportBundle\Consumer\RedisEntryConsumer; | 7 | use Wallabag\ImportBundle\Consumer\RedisEntryConsumer; |
7 | use Wallabag\UserBundle\Entity\User; | 8 | use Wallabag\UserBundle\Entity\User; |
8 | 9 | ||
9 | class RedisEntryConsumerTest extends \PHPUnit_Framework_TestCase | 10 | class RedisEntryConsumerTest extends TestCase |
10 | { | 11 | { |
11 | public function testMessageOk() | 12 | public function testMessageOk() |
12 | { | 13 | { |
diff --git a/tests/Wallabag/ImportBundle/Import/ChromeImportTest.php b/tests/Wallabag/ImportBundle/Import/ChromeImportTest.php index 5559ac7e..12a789e0 100644 --- a/tests/Wallabag/ImportBundle/Import/ChromeImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/ChromeImportTest.php | |||
@@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; | |||
5 | use M6Web\Component\RedisMock\RedisMockFactory; | 5 | use M6Web\Component\RedisMock\RedisMockFactory; |
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 Simpleue\Queue\RedisQueue; | 9 | use Simpleue\Queue\RedisQueue; |
9 | use Wallabag\CoreBundle\Entity\Entry; | 10 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\ImportBundle\Import\ChromeImport; | 11 | use Wallabag\ImportBundle\Import\ChromeImport; |
11 | use Wallabag\ImportBundle\Redis\Producer; | 12 | use Wallabag\ImportBundle\Redis\Producer; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class ChromeImportTest extends \PHPUnit_Framework_TestCase | 15 | class ChromeImportTest extends TestCase |
15 | { | 16 | { |
16 | protected $user; | 17 | protected $user; |
17 | protected $em; | 18 | protected $em; |
diff --git a/tests/Wallabag/ImportBundle/Import/FirefoxImportTest.php b/tests/Wallabag/ImportBundle/Import/FirefoxImportTest.php index a1783bfc..eaf69377 100644 --- a/tests/Wallabag/ImportBundle/Import/FirefoxImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/FirefoxImportTest.php | |||
@@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; | |||
5 | use M6Web\Component\RedisMock\RedisMockFactory; | 5 | use M6Web\Component\RedisMock\RedisMockFactory; |
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 Simpleue\Queue\RedisQueue; | 9 | use Simpleue\Queue\RedisQueue; |
9 | use Wallabag\CoreBundle\Entity\Entry; | 10 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\ImportBundle\Import\FirefoxImport; | 11 | use Wallabag\ImportBundle\Import\FirefoxImport; |
11 | use Wallabag\ImportBundle\Redis\Producer; | 12 | use Wallabag\ImportBundle\Redis\Producer; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class FirefoxImportTest extends \PHPUnit_Framework_TestCase | 15 | class FirefoxImportTest extends TestCase |
15 | { | 16 | { |
16 | protected $user; | 17 | protected $user; |
17 | protected $em; | 18 | protected $em; |
diff --git a/tests/Wallabag/ImportBundle/Import/ImportChainTest.php b/tests/Wallabag/ImportBundle/Import/ImportChainTest.php index a9a9915e..f27826f4 100644 --- a/tests/Wallabag/ImportBundle/Import/ImportChainTest.php +++ b/tests/Wallabag/ImportBundle/Import/ImportChainTest.php | |||
@@ -2,9 +2,10 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\ImportBundle\Import; | 3 | namespace Tests\Wallabag\ImportBundle\Import; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Wallabag\ImportBundle\Import\ImportChain; | 6 | use Wallabag\ImportBundle\Import\ImportChain; |
6 | 7 | ||
7 | class ImportChainTest extends \PHPUnit_Framework_TestCase | 8 | class ImportChainTest extends TestCase |
8 | { | 9 | { |
9 | public function testGetAll() | 10 | public function testGetAll() |
10 | { | 11 | { |
diff --git a/tests/Wallabag/ImportBundle/Import/ImportCompilerPassTest.php b/tests/Wallabag/ImportBundle/Import/ImportCompilerPassTest.php index 207054f4..e0e90ae3 100644 --- a/tests/Wallabag/ImportBundle/Import/ImportCompilerPassTest.php +++ b/tests/Wallabag/ImportBundle/Import/ImportCompilerPassTest.php | |||
@@ -2,10 +2,11 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\ImportBundle\Import; | 3 | namespace Tests\Wallabag\ImportBundle\Import; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Symfony\Component\DependencyInjection\ContainerBuilder; | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
6 | use Wallabag\ImportBundle\Import\ImportCompilerPass; | 7 | use Wallabag\ImportBundle\Import\ImportCompilerPass; |
7 | 8 | ||
8 | class ImportCompilerPassTest extends \PHPUnit_Framework_TestCase | 9 | class ImportCompilerPassTest extends TestCase |
9 | { | 10 | { |
10 | public function testProcessNoDefinition() | 11 | public function testProcessNoDefinition() |
11 | { | 12 | { |
diff --git a/tests/Wallabag/ImportBundle/Import/InstapaperImportTest.php b/tests/Wallabag/ImportBundle/Import/InstapaperImportTest.php index 274dc326..b5163fad 100644 --- a/tests/Wallabag/ImportBundle/Import/InstapaperImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/InstapaperImportTest.php | |||
@@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; | |||
5 | use M6Web\Component\RedisMock\RedisMockFactory; | 5 | use M6Web\Component\RedisMock\RedisMockFactory; |
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 Simpleue\Queue\RedisQueue; | 9 | use Simpleue\Queue\RedisQueue; |
9 | use Wallabag\CoreBundle\Entity\Entry; | 10 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\ImportBundle\Import\InstapaperImport; | 11 | use Wallabag\ImportBundle\Import\InstapaperImport; |
11 | use Wallabag\ImportBundle\Redis\Producer; | 12 | use Wallabag\ImportBundle\Redis\Producer; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class InstapaperImportTest extends \PHPUnit_Framework_TestCase | 15 | class InstapaperImportTest extends TestCase |
15 | { | 16 | { |
16 | protected $user; | 17 | protected $user; |
17 | protected $em; | 18 | protected $em; |
diff --git a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php index fe59f867..baa5d905 100644 --- a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php | |||
@@ -9,6 +9,7 @@ use GuzzleHttp\Subscriber\Mock; | |||
9 | use M6Web\Component\RedisMock\RedisMockFactory; | 9 | use M6Web\Component\RedisMock\RedisMockFactory; |
10 | use Monolog\Handler\TestHandler; | 10 | use Monolog\Handler\TestHandler; |
11 | use Monolog\Logger; | 11 | use Monolog\Logger; |
12 | use PHPUnit\Framework\TestCase; | ||
12 | use Simpleue\Queue\RedisQueue; | 13 | use Simpleue\Queue\RedisQueue; |
13 | use Wallabag\CoreBundle\Entity\Config; | 14 | use Wallabag\CoreBundle\Entity\Config; |
14 | use Wallabag\CoreBundle\Entity\Entry; | 15 | use Wallabag\CoreBundle\Entity\Entry; |
@@ -16,7 +17,7 @@ use Wallabag\ImportBundle\Import\PocketImport; | |||
16 | use Wallabag\ImportBundle\Redis\Producer; | 17 | use Wallabag\ImportBundle\Redis\Producer; |
17 | use Wallabag\UserBundle\Entity\User; | 18 | use Wallabag\UserBundle\Entity\User; |
18 | 19 | ||
19 | class PocketImportTest extends \PHPUnit_Framework_TestCase | 20 | class PocketImportTest extends TestCase |
20 | { | 21 | { |
21 | protected $token; | 22 | protected $token; |
22 | protected $user; | 23 | protected $user; |
diff --git a/tests/Wallabag/ImportBundle/Import/ReadabilityImportTest.php b/tests/Wallabag/ImportBundle/Import/ReadabilityImportTest.php index 1822cdaa..e55a56e0 100644 --- a/tests/Wallabag/ImportBundle/Import/ReadabilityImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/ReadabilityImportTest.php | |||
@@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; | |||
5 | use M6Web\Component\RedisMock\RedisMockFactory; | 5 | use M6Web\Component\RedisMock\RedisMockFactory; |
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 Simpleue\Queue\RedisQueue; | 9 | use Simpleue\Queue\RedisQueue; |
9 | use Wallabag\CoreBundle\Entity\Entry; | 10 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\ImportBundle\Import\ReadabilityImport; | 11 | use Wallabag\ImportBundle\Import\ReadabilityImport; |
11 | use Wallabag\ImportBundle\Redis\Producer; | 12 | use Wallabag\ImportBundle\Redis\Producer; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class ReadabilityImportTest extends \PHPUnit_Framework_TestCase | 15 | class ReadabilityImportTest extends TestCase |
15 | { | 16 | { |
16 | protected $user; | 17 | protected $user; |
17 | protected $em; | 18 | protected $em; |
diff --git a/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php b/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php index 822ad694..4e9f472d 100644 --- a/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php | |||
@@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; | |||
5 | use M6Web\Component\RedisMock\RedisMockFactory; | 5 | use M6Web\Component\RedisMock\RedisMockFactory; |
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 Simpleue\Queue\RedisQueue; | 9 | use Simpleue\Queue\RedisQueue; |
9 | use Wallabag\CoreBundle\Entity\Entry; | 10 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\ImportBundle\Import\WallabagV1Import; | 11 | use Wallabag\ImportBundle\Import\WallabagV1Import; |
11 | use Wallabag\ImportBundle\Redis\Producer; | 12 | use Wallabag\ImportBundle\Redis\Producer; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase | 15 | class WallabagV1ImportTest extends TestCase |
15 | { | 16 | { |
16 | protected $user; | 17 | protected $user; |
17 | protected $em; | 18 | protected $em; |
diff --git a/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php b/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php index fab50a45..68a5d1ad 100644 --- a/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php | |||
@@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; | |||
5 | use M6Web\Component\RedisMock\RedisMockFactory; | 5 | use M6Web\Component\RedisMock\RedisMockFactory; |
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 Simpleue\Queue\RedisQueue; | 9 | use Simpleue\Queue\RedisQueue; |
9 | use Wallabag\CoreBundle\Entity\Entry; | 10 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\ImportBundle\Import\WallabagV2Import; | 11 | use Wallabag\ImportBundle\Import\WallabagV2Import; |
11 | use Wallabag\ImportBundle\Redis\Producer; | 12 | use Wallabag\ImportBundle\Redis\Producer; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | 15 | class WallabagV2ImportTest extends TestCase |
15 | { | 16 | { |
16 | protected $user; | 17 | protected $user; |
17 | protected $em; | 18 | protected $em; |
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; |