diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-22 08:50:47 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 13:34:41 +0100 |
commit | 385ec2947dd72d02fd951774c52230f740341d33 (patch) | |
tree | 783fa1c4f221b2ebb6cd101ce73e79cd3ee5ffa6 /tests | |
parent | 4bed12e4d615379064799a39fe1b0928afd686ab (diff) | |
download | nextcloud-server-385ec2947dd72d02fd951774c52230f740341d33.tar.gz nextcloud-server-385ec2947dd72d02fd951774c52230f740341d33.zip |
Skip redis if not configured
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Memcache/RedisTest.php | 4 |
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) { |