Commit cf276247 authored by catch's avatar catch

Issue #2392533 by cilefen, bircher, snehi, deepakaryan1988, Oleksiy,...

Issue #2392533 by cilefen, bircher, snehi, deepakaryan1988, Oleksiy, priya.chat, Shefarik, rpayanm, venkatadapa: Grammatical error in ModuleUninstallValidatorException message
parent 8e2009f7
......@@ -344,7 +344,7 @@ public function uninstall(array $module_list, $uninstall_dependents = TRUE) {
foreach ($reasons as $reason) {
$reason_message[] = implode(', ', $reason);
}
throw new ModuleUninstallValidatorException('The following reasons prevents the modules from being uninstalled: ' . implode('; ', $reason_message));
throw new ModuleUninstallValidatorException('The following reasons prevent the modules from being uninstalled: ' . implode('; ', $reason_message));
}
// Set the actual module weights.
$module_list = array_map(function ($module) use ($module_data) {
......
......@@ -83,7 +83,7 @@ public function testUninstallingModule() {
}
catch (ModuleUninstallValidatorException $e) {
$this->pass($message);
$this->assertEqual($e->getMessage(), 'The following reasons prevents the modules from being uninstalled: There is data for the field extra_base_field on entity type Test entity');
$this->assertEqual($e->getMessage(), 'The following reasons prevent the modules from being uninstalled: There is data for the field extra_base_field on entity type Test entity');
}
// Verify uninstalling entity_test is not possible when there is content for
......
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