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/WallabagV1ControllerTest.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/WallabagV1ControllerTest.php')
-rw-r--r-- | tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php b/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php index ff1bf6f0..96556717 100644 --- a/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php +++ b/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php | |||
@@ -19,6 +19,22 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
19 | $this->assertEquals(1, $crawler->filter('input[type=file]')->count()); | 19 | $this->assertEquals(1, $crawler->filter('input[type=file]')->count()); |
20 | } | 20 | } |
21 | 21 | ||
22 | public function testImportWallabagWithRabbitEnabled() | ||
23 | { | ||
24 | $this->logInAs('admin'); | ||
25 | $client = $this->getClient(); | ||
26 | |||
27 | $client->getContainer()->get('craue_config')->set('rabbitmq', 1); | ||
28 | |||
29 | $crawler = $client->request('GET', '/import/wallabag-v1'); | ||
30 | |||
31 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | ||
32 | $this->assertEquals(1, $crawler->filter('form[name=upload_import_file] > button[type=submit]')->count()); | ||
33 | $this->assertEquals(1, $crawler->filter('input[type=file]')->count()); | ||
34 | |||
35 | $client->getContainer()->get('craue_config')->set('rabbitmq', 0); | ||
36 | } | ||
37 | |||
22 | public function testImportWallabagWithFile() | 38 | public function testImportWallabagWithFile() |
23 | { | 39 | { |
24 | $this->logInAs('admin'); | 40 | $this->logInAs('admin'); |