summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/Memcache/RedisTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Memcache/RedisTest.php b/tests/lib/Memcache/RedisTest.php
index ba16b4a2bf1..e6a940599d7 100644
--- a/tests/lib/Memcache/RedisTest.php
+++ b/tests/lib/Memcache/RedisTest.php
@@ -17,6 +17,10 @@ class RedisTest extends Cache {
self::markTestSkipped('The redis extension is not available.');
}
+ if (\OC::$server->getConfig()->getSystemValue('redis', []) === []) {
+ self::markTestSkipped('Redis not configured in config.php');
+ }
+
$errorOccurred = false;
set_error_handler(
function($errno, $errstr) {