From 7e7f644952c0510a33e54c156790fe9304774342 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 3 Jan 2019 19:35:33 +0000 Subject: [PATCH] skip this check if unit test --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 05ee13c2..39ff5755 100644 --- a/common.php +++ b/common.php @@ -63,7 +63,7 @@ global $CONF; require_once("$incpath/config.inc.php"); -if (isset($CONF['configured'])) { +if (isset($CONF['configured']) && !defined('PHPUNIT_TEST')) { if ($CONF['configured'] == false) { die("Please edit config.local.php - change \$CONF['configured'] to true after specifying appropriate local settings (database_type etc)"); }