diff --git a/core/modules/help/lib/Drupal/help/Tests/HelpTest.php b/core/modules/help/lib/Drupal/help/Tests/HelpTest.php index 7c1e639..0f1c0d8 100644 --- a/core/modules/help/lib/Drupal/help/Tests/HelpTest.php +++ b/core/modules/help/lib/Drupal/help/Tests/HelpTest.php @@ -110,8 +110,8 @@ class HelpTest extends WebTestBase { $modules = array(); $module_data = system_rebuild_module_data(); foreach (module_config()->get() as $module => $data) { - if (file_exists($module_data->filename) && function_exists($module . '_help')) { - $modules[$module] = $data->info['name']; + if (file_exists($module_data[$module]->filename) && function_exists($module . '_help')) { + $modules[$module] = $module_data[$module]->info['name']; } } return $modules;