Merge pull request #2420 from wallabag/redis-tests
Avoid error when Redis isn't here in tests
This commit is contained in:
commit
7dacf35845
tests/Wallabag/ImportBundle/Controller
@ -54,6 +54,7 @@ class ChromeControllerTest extends WallabagCoreTestCase
|
|||||||
|
|
||||||
public function testImportChromeWithRedisEnabled()
|
public function testImportChromeWithRedisEnabled()
|
||||||
{
|
{
|
||||||
|
$this->checkRedis();
|
||||||
$this->logInAs('admin');
|
$this->logInAs('admin');
|
||||||
$client = $this->getClient();
|
$client = $this->getClient();
|
||||||
$client->getContainer()->get('craue_config')->set('import_with_redis', 1);
|
$client->getContainer()->get('craue_config')->set('import_with_redis', 1);
|
||||||
|
@ -54,6 +54,7 @@ class FirefoxControllerTest extends WallabagCoreTestCase
|
|||||||
|
|
||||||
public function testImportFirefoxWithRedisEnabled()
|
public function testImportFirefoxWithRedisEnabled()
|
||||||
{
|
{
|
||||||
|
$this->checkRedis();
|
||||||
$this->logInAs('admin');
|
$this->logInAs('admin');
|
||||||
$client = $this->getClient();
|
$client = $this->getClient();
|
||||||
$client->getContainer()->get('craue_config')->set('import_with_redis', 1);
|
$client->getContainer()->get('craue_config')->set('import_with_redis', 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user