Commit 9d356a43 authored by webchick's avatar webchick

Issue #1760934 by tim.plunkett: Fixed WebTestBase::setUp() attempts to enable...

Issue #1760934 by tim.plunkett: Fixed WebTestBase::setUp() attempts to enable modules multiple times.
parent 2ee77e43
......@@ -101,7 +101,7 @@ protected function setUp() {
}
$class = get_parent_class($class);
}
$this->enableModules($modules, FALSE);
$this->enableModules(array_unique($modules), FALSE);
}
/**
......
......@@ -829,6 +829,7 @@ protected function setUp() {
$class = get_parent_class($class);
}
if ($modules) {
$modules = array_unique($modules);
$success = module_enable($modules, TRUE);
$this->assertTrue($success, t('Enabled modules: %modules', array('%modules' => implode(', ', $modules))));
$this->rebuildContainer();
......
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