Commit 3e334ad0 authored by Robert Lyon's avatar Robert Lyon

Bug 1581227: Fixing undefined function error

When trying to start behat test without setting behat config vars

behatnotneeded

Change-Id: I47b4e741aacbfe794339ef6771b0c0aee948fe45
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 3d618f24
......@@ -62,7 +62,7 @@ if (isset($CFG->behat_dataroot)) {
// switch the $CFG->X for $CFG->behat_X.
if (defined('BEHAT_UTIL') || defined('BEHAT_TEST')) {
if (empty($CFG->behat_wwwroot) || empty($CFG->behat_dataroot) || empty($CFG->behat_dbprefix)) {
log_('Behat tests cannot run unless $cfg->behat_wwwroot, $cfg->behat_dataroot, and $cfg->behat_dbprefix are defined in config.php');
log_debug('Behat tests cannot run unless $cfg->behat_wwwroot, $cfg->behat_dataroot, and $cfg->behat_dbprefix are defined in config.php');
die(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment