Commit 76f9c9d2 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Allowing for phpunit test to warn about need install first"

parents 564f3e36 b8470848
......@@ -421,6 +421,9 @@ if ($siteclosed && !$USER->admin) {
// check to see if we're installed...
if (!get_config('installed')) {
ensure_install_sanity();
if (defined('TESTSRUNNING')) {
die("Need to have Mahara installed before phpunit tests will run. Please install via 'php htdocs/admin/cli/install.php'");
}
$scriptfilename = str_replace('\\', '/', $_SERVER['SCRIPT_FILENAME']);
if (!defined('CLI')
......
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