mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-21007 UnitTestCaseUsingDatabase misconfigured unit tests now reported as skipped
This commit is contained in:
parent
776b85474d
commit
2319bdedd6
3 changed files with 12 additions and 1 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue