Skip to content
Snippets Groups Projects
Commit 32070726 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2417817 by yched: Keep contrib modules out of ConfigImportAllTest

parent 663c3712
No related branches found
No related tags found
No related merge requests found
......@@ -51,9 +51,9 @@ public function testInstallUninstall() {
// Get a list of modules to enable.
$all_modules = system_rebuild_module_data();
$all_modules = array_filter($all_modules, function ($module) {
// Filter hidden, already enabled modules and modules in the Testing
// package.
if (!empty($module->info['hidden']) || $module->status == TRUE || $module->info['package'] == 'Testing') {
// Filter contrib, hidden, already enabled modules and modules in the
// Testing package.
if ($module->origin !== 'core' || !empty($module->info['hidden']) || $module->status == TRUE || $module->info['package'] == 'Testing') {
return FALSE;
}
return TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment