Commit 3b3cb6f9 authored by alexpott's avatar alexpott

Issue #2207377 by sun: Bogus "Enabled modules: ." assertions in test results...

Issue #2207377 by sun: Bogus "Enabled modules: ." assertions in test results when test enables no modules.
parent ed4b791c
......@@ -169,9 +169,11 @@ protected function setUp() {
// Modules have been collected in reverse class hierarchy order; modules
// defined by base classes should be sorted first. Then, merge the results
// together.
$modules = array_reverse($modules);
$modules = call_user_func_array('array_merge_recursive', $modules);
$this->enableModules($modules, FALSE);
if ($modules) {
$modules = array_reverse($modules);
$modules = call_user_func_array('array_merge_recursive', $modules);
$this->enableModules($modules, FALSE);
}
// In order to use theme functions default theme config needs to exist.
\Drupal::config('system.theme')->set('default', 'stark');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment