Skip to content
Snippets Groups Projects
Commit f696a0ca authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #490574 by dww: avoid notices when you don't have files declared in your .info file.

parent 0a2352c8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -278,6 +278,7 @@ function simpletest_registry_files_alter(&$files, $modules) {
// 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);
......@@ -286,6 +287,7 @@ function simpletest_registry_files_alter(&$files, $modules) {
}
}
}
}
/**
* Remove all temporary database tables and directories.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment