Commit 2de82cf6 authored by catch's avatar catch
Browse files

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 1dc71650
Loading
Loading
Loading
Loading
+1 −1
Changes for core/lib/Drupal/Core/Extension/ModuleInstaller.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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) {
+1 −1
Changes for core/modules/system/src/Tests/Field/FieldModuleUninstallValidatorTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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