Skip redis if not configured
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
4bed12e4d6
commit
385ec2947d
|
@ -17,6 +17,10 @@ class RedisTest extends Cache {
|
||||||
self::markTestSkipped('The redis extension is not available.');
|
self::markTestSkipped('The redis extension is not available.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (\OC::$server->getConfig()->getSystemValue('redis', []) === []) {
|
||||||
|
self::markTestSkipped('Redis not configured in config.php');
|
||||||
|
}
|
||||||
|
|
||||||
$errorOccurred = false;
|
$errorOccurred = false;
|
||||||
set_error_handler(
|
set_error_handler(
|
||||||
function($errno, $errstr) {
|
function($errno, $errstr) {
|
||||||
|
|
Loading…
Reference in New Issue