summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2015-11-23 10:54:16 (GMT)
committerNathaniel Catchpole2015-11-23 10:54:16 (GMT)
commitcf2762471a8f7774fd143b78aa87d93227db3648 (patch)
tree2b4565ead3a847836573ec34a139fe6a6069eecd
parent8e2009f7338dea7a7087140f53952e626898290a (diff)
Issue #2392533 by cilefen, bircher, snehi, deepakaryan1988, Oleksiy, priya.chat, Shefarik, rpayanm, venkatadapa: Grammatical error in ModuleUninstallValidatorException message
-rw-r--r--core/lib/Drupal/Core/Extension/ModuleInstaller.php2
-rw-r--r--core/modules/system/src/Tests/Field/FieldModuleUninstallValidatorTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/lib/Drupal/Core/Extension/ModuleInstaller.php b/core/lib/Drupal/Core/Extension/ModuleInstaller.php
index 92bdb80..f8300cb 100644
--- a/core/lib/Drupal/Core/Extension/ModuleInstaller.php
+++ b/core/lib/Drupal/Core/Extension/ModuleInstaller.php
@@ -344,7 +344,7 @@ class ModuleInstaller implements ModuleInstallerInterface {
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) {
diff --git a/core/modules/system/src/Tests/Field/FieldModuleUninstallValidatorTest.php b/core/modules/system/src/Tests/Field/FieldModuleUninstallValidatorTest.php
index 3720321..2d7c160 100644
--- a/core/modules/system/src/Tests/Field/FieldModuleUninstallValidatorTest.php
+++ b/core/modules/system/src/Tests/Field/FieldModuleUninstallValidatorTest.php
@@ -83,7 +83,7 @@ class FieldModuleUninstallValidatorTest extends EntityUnitTestBase {
}
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