diff --git a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php index e948aa584c27ca06e6d9ccd99e1d8c4165f494c8..ea7d29fedfc176c86efa9a89684a6e0fb3bebcb0 100644 --- a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php @@ -136,7 +136,7 @@ protected function validateModules(ConfigImporter $config_importer) { // Ensure the profile is not changing. if ($install_profile !== $core_extension['profile']) { - $config_importer->logError($this->t('Cannot change the install profile from %new_profile to %profile once Drupal is installed.', ['%profile' => $install_profile, '%new_profile' => $core_extension['profile']])); + $config_importer->logError($this->t('Cannot change the install profile from %profile to %new_profile once Drupal is installed.', ['%profile' => $install_profile, '%new_profile' => $core_extension['profile']])); } } diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php index 9d3989cf18f22293bd7c3452058d1adc85febfc4..4024b7f9d967592e02fcf367454f9f0d11dc910a 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php @@ -692,7 +692,7 @@ public function testInstallProfileMisMatch() { // does not use an install profile. This situation should be impossible // to get in but site's can removed the install profile setting from // settings.php so the test is valid. - $this->assertEqual(['Cannot change the install profile from this_will_not_work to once Drupal is installed.'], $error_log); + $this->assertEqual(['Cannot change the install profile from to this_will_not_work once Drupal is installed.'], $error_log); } }