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() { ...@@ -171,10 +171,10 @@ protected function setUp() {
// Modules have been collected in reverse class hierarchy order; modules // Modules have been collected in reverse class hierarchy order; modules
// defined by base classes should be sorted first. Then, merge the results // defined by base classes should be sorted first. Then, merge the results
// together. // together.
$modules = array_reverse($modules);
$modules = call_user_func_array('array_merge_recursive', $modules);
if ($modules) { if ($modules) {
$modules = array_reverse($modules); $this->enableModules($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. // In order to use theme functions default theme config needs to exist.
\Drupal::config('system.theme')->set('default', 'stark'); \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