mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Skip redis if not configured
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
4bed12e4d6
commit
385ec2947d
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue