MDL-21007 UnitTestCaseUsingDatabase misconfigured unit tests now reported as skipped

This commit is contained in:
Eloy Lafuente 2009-11-30 23:18:34 +00:00
parent 776b85474d
commit 2319bdedd6
3 changed files with 12 additions and 1 deletions

View file

@ -604,6 +604,7 @@ class TestSuite {
}
if (is_subclass_of($class, 'UnitTestCaseUsingDatabase') && empty($CFG->unittestprefix)) {
// Do not execute this test because $CFG->unittestprefix is not set, but it will be required.
$reporter->paintSkip("Unit test \"{$class}\" of type UnitTestCaseUsingDatabase skipped. Must define different, non-conflicting \$CFG->unittestprefix to be runnable.");
continue;
}
if ($currenttl = @ini_get('max_execution_time')) {