diff options
author | Paulino Michelazzo <paulino@michelazzo.com.br> | 2016-10-18 22:48:23 +0200 |
---|---|---|
committer | Paulino Michelazzo <paulino@michelazzo.com.br> | 2016-10-18 22:48:23 +0200 |
commit | 99731f0bb1f6fd2815eeb9af504ce86df927657b (patch) | |
tree | b080efc608d2bbd52b77a4a0067402007f50c5a8 /tests/Wallabag/CoreBundle/WallabagCoreTestCase.php | |
parent | 3a3c6b866b52721431bed22426d9abfcd0d2dfe0 (diff) | |
parent | 7180aaed45dce62e40620a9e4b202526ebd6a3bb (diff) | |
download | wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.tar.gz wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.tar.zst wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.zip |
Merge remote-tracking branch 'wallabag/master'
Diffstat (limited to 'tests/Wallabag/CoreBundle/WallabagCoreTestCase.php')
-rw-r--r-- | tests/Wallabag/CoreBundle/WallabagCoreTestCase.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php index c0055888..7bf4b43c 100644 --- a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php +++ b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php | |||
@@ -80,4 +80,17 @@ 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('Redis is not installed/activated'); | ||
94 | } | ||
95 | } | ||
83 | } | 96 | } |