diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-12-18 14:32:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-18 14:32:21 +0100 |
commit | ef5c8a7d01d7b3f0041455503499ab67e2206e0d (patch) | |
tree | 66fad00b695ceb24a5a3ee7ef3185c18050f316f /tests/Wallabag/ImportBundle | |
parent | 01ea7f585504fba74bd138386ca30ca4d26cfe65 (diff) | |
parent | ad880894a8dc0af97ee145f76ed10ca99e1ebf5a (diff) | |
download | wallabag-ef5c8a7d01d7b3f0041455503499ab67e2206e0d.tar.gz wallabag-ef5c8a7d01d7b3f0041455503499ab67e2206e0d.tar.zst wallabag-ef5c8a7d01d7b3f0041455503499ab67e2206e0d.zip |
Merge pull request #3515 from wallabag/php-7.2
Add PHP 7.2 compatibility
Diffstat (limited to 'tests/Wallabag/ImportBundle')
12 files changed, 25 insertions, 11 deletions
diff --git a/tests/Wallabag/ImportBundle/Command/ImportCommandTest.php b/tests/Wallabag/ImportBundle/Command/ImportCommandTest.php index 30aee4d8..f95320a4 100644 --- a/tests/Wallabag/ImportBundle/Command/ImportCommandTest.php +++ b/tests/Wallabag/ImportBundle/Command/ImportCommandTest.php | |||
@@ -97,5 +97,8 @@ class ImportCommandTest extends WallabagCoreTestCase | |||
97 | '--useUserId' => true, | 97 | '--useUserId' => true, |
98 | '--importer' => 'v2', | 98 | '--importer' => 'v2', |
99 | ]); | 99 | ]); |
100 | |||
101 | $this->assertContains('imported', $tester->getDisplay()); | ||
102 | $this->assertContains('already saved', $tester->getDisplay()); | ||
100 | } | 103 | } |
101 | } | 104 | } |
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; |