diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-09 18:02:29 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-11 21:58:56 +0200 |
commit | 13470c3596d0b1490bbf18b39128a05bbb3c7f3e (patch) | |
tree | 962028a191b644653e6c9b2b536189ded89c3017 /tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php | |
parent | 8664069e1aa2fa89e17587308a03f2720c20327a (diff) | |
download | wallabag-13470c3596d0b1490bbf18b39128a05bbb3c7f3e.tar.gz wallabag-13470c3596d0b1490bbf18b39128a05bbb3c7f3e.tar.zst wallabag-13470c3596d0b1490bbf18b39128a05bbb3c7f3e.zip |
Add test for RabbitMQ
Also update Symfony deps
Diffstat (limited to 'tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php')
-rw-r--r-- | tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php b/tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php index e0e61df8..098cf356 100644 --- a/tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php +++ b/tests/Wallabag/ImportBundle/Controller/PocketControllerTest.php | |||
@@ -17,6 +17,21 @@ class PocketControllerTest extends WallabagCoreTestCase | |||
17 | $this->assertEquals(1, $crawler->filter('button[type=submit]')->count()); | 17 | $this->assertEquals(1, $crawler->filter('button[type=submit]')->count()); |
18 | } | 18 | } |
19 | 19 | ||
20 | public function testImportPocketWithRabbitEnabled() | ||
21 | { | ||
22 | $this->logInAs('admin'); | ||
23 | $client = $this->getClient(); | ||
24 | |||
25 | $client->getContainer()->get('craue_config')->set('rabbitmq', 1); | ||
26 | |||
27 | $crawler = $client->request('GET', '/import/pocket'); | ||
28 | |||
29 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | ||
30 | $this->assertEquals(1, $crawler->filter('button[type=submit]')->count()); | ||
31 | |||
32 | $client->getContainer()->get('craue_config')->set('rabbitmq', 0); | ||
33 | } | ||
34 | |||
20 | public function testImportPocketAuthBadToken() | 35 | public function testImportPocketAuthBadToken() |
21 | { | 36 | { |
22 | $this->logInAs('admin'); | 37 | $this->logInAs('admin'); |