Commit c8faf220 authored by alexpott's avatar alexpott

Issue #2207377 by sun, xjm: Fixed Bogus "Enabled modules: ." assertions in...

Issue #2207377 by sun, xjm: Fixed Bogus "Enabled modules: ." assertions in test results when test enables no modules.
parent 6e7dfbc0
......@@ -171,10 +171,10 @@ 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.
if ($modules) {
$modules = array_reverse($modules);
$modules = call_user_func_array('array_merge_recursive', $modules);
$this->enableModules($modules, FALSE);
if ($modules) {
$this->enableModules($modules);
}
// 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