// theme depends on them.
$this->
drupalGet('admin/modules/uninstall'
);
foreach ($all_dependent_modules as $attribute) { $assert_session->
elementExists('css', "[name=\"uninstall[
$attribute]\"][disabled]"
);
} foreach ($required_by_messages as $selector =>
$message) { $assert_session->
elementTextContains('css',
$selector,
$message);
} // Uninstall the theme that depends on the modules, and confirm the modules
// can now be uninstalled.
$this->
uninstallTheme($theme_name);
$this->
drupalGet('admin/modules/uninstall'
);
// Only attempt to uninstall modules not required by the base theme.
$modules_to_uninstall =
array_diff($all_dependent_modules,
$base_theme_module_names);
$this->
uninstallModules($modules_to_uninstall);
if (!
empty($base_theme_to_uninstall)) { $this->
uninstallTheme($base_theme_to_uninstall);
$this->
drupalGet('admin/modules/uninstall'
);
$this->
uninstallModules($base_theme_module_names);
} }