diff --git a/htdocs/init.php b/htdocs/init.php index fea541e97ba4023f557ca68a0c97962984c9c53d..dad2daf0d5fbe9d0a618dba113727c626a937a99 100644 --- a/htdocs/init.php +++ b/htdocs/init.php @@ -439,6 +439,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')