aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-09-25 11:36:59 +0200
committerGitHub <noreply@github.com>2016-09-25 11:36:59 +0200
commit9d7dd6b0d2480d3efff5b0ab1461f2ef99bfd57a (patch)
tree18dfb21ca8e417343d844eb5f5f09fd6b9a11130 /tests/Wallabag/CoreBundle
parent637aa17e6b52dd8021854a809053560a27caca72 (diff)
parent0e0102b6fcd17266f39dd63a808740d01ab9bd8a (diff)
downloadwallabag-9d7dd6b0d2480d3efff5b0ab1461f2ef99bfd57a.tar.gz
wallabag-9d7dd6b0d2480d3efff5b0ab1461f2ef99bfd57a.tar.zst
wallabag-9d7dd6b0d2480d3efff5b0ab1461f2ef99bfd57a.zip
Merge pull request #2306 from wallabag/redis-rabbit-check
Some checks about Redis & RabbitMQ
Diffstat (limited to 'tests/Wallabag/CoreBundle')
-rw-r--r--tests/Wallabag/CoreBundle/WallabagCoreTestCase.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php
index c0055888..75b7ee0b 100644
--- a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php
+++ b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php
@@ -80,4 +80,19 @@ abstract class WallabagCoreTestCase extends WebTestCase
80 80
81 throw new \RuntimeException('No logged in User.'); 81 throw new \RuntimeException('No logged in User.');
82 } 82 }
83
84 /**
85 * Check if Redis is installed.
86 * If not, mark test as skip
87 */
88 protected function checkRedis()
89 {
90 try {
91 $this->client->getContainer()->get('wallabag_core.redis.client')->connect();
92 } catch (\Exception $e) {
93 $this->markTestSkipped(
94 'Redis is not installed/activated'
95 );
96 }
97 }
83} 98}