mirror of
https://github.com/moodle/moodle.git
synced 2025-07-24 15:51:56 +02:00
MDL-39854 reimplement Frankenstyle support and enable classloader
Better performance, more reliable, completely self contained, more validation and full backwards compatibility. This will also allow us to implement ignoring of plugins.
This commit is contained in:
@@ -93,7 +93,7 @@ class tests_finder {
|
||||
|
||||
$subsystemswithtests = array();
|
||||
|
||||
$subsystems = get_core_subsystems();
|
||||
$subsystems = core_component::get_core_subsystems();
|
||||
|
||||
// Hack the list a bit to cover some well-known ones
|
||||
$subsystems['backup'] = 'backup';
|
||||
@@ -101,11 +101,10 @@ class tests_finder {
|
||||
$subsystems['db-ddl'] = 'lib/ddl';
|
||||
|
||||
ksort($subsystems);
|
||||
foreach ($subsystems as $subsys => $relsubsys) {
|
||||
if ($relsubsys === null) {
|
||||
foreach ($subsystems as $subsys => $fullsubsys) {
|
||||
if ($fullsubsys === null) {
|
||||
continue;
|
||||
}
|
||||
$fullsubsys = $CFG->dirroot . '/' . $relsubsys;
|
||||
if (!is_dir($fullsubsys)) {
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user