1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-22 17:18:37 +00:00

Add test for RabbitMQ

Also update Symfony deps
This commit is contained in:
Jeremy Benoist 2016-09-09 18:02:29 +02:00
parent 8664069e1a
commit 13470c3596
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
11 changed files with 487 additions and 2 deletions

View file

@ -17,6 +17,21 @@ class PocketControllerTest extends WallabagCoreTestCase
$this->assertEquals(1, $crawler->filter('button[type=submit]')->count());
}
public function testImportPocketWithRabbitEnabled()
{
$this->logInAs('admin');
$client = $this->getClient();
$client->getContainer()->get('craue_config')->set('rabbitmq', 1);
$crawler = $client->request('GET', '/import/pocket');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
$this->assertEquals(1, $crawler->filter('button[type=submit]')->count());
$client->getContainer()->get('craue_config')->set('rabbitmq', 0);
}
public function testImportPocketAuthBadToken()
{
$this->logInAs('admin');