Skip to content

Commit

Permalink
Issue #6350: The Testing module implements a hook that is not invoked…
Browse files Browse the repository at this point in the history
… by Backdrop
  • Loading branch information
kiamlaluno committed Dec 30, 2023
1 parent 19dc618 commit a4b1205
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions core/modules/simpletest/simpletest.module
Original file line number Diff line number Diff line change
Expand Up @@ -472,29 +472,6 @@ function simpletest_test_get_by_class($class) {
return FALSE;
}

/**
* Implements hook_registry_files_alter().
*
* Add the test files for disabled modules so that we get a list containing
* all the available tests.
*/
function simpletest_registry_files_alter(&$files, $modules) {
foreach ($modules as $module) {
// Only add test files for disabled modules, as enabled modules should
// already include any test files they provide.
if (!$module->status) {
$dir = $module->dir;
if (!empty($module->info['files'])) {
foreach ($module->info['files'] as $file) {
if (substr($file, -5) == '.test') {
$files["$dir/$file"] = array('module' => $module->name, 'weight' => $module->weight);
}
}
}
}
}
}

/**
* Gets a list of the installation profiles that are available.
*
Expand Down

0 comments on commit a4b1205

Please sign in to comment.