From e4c874e18ceebb896eca5ad5a5e189658030f765 Mon Sep 17 00:00:00 2001 From: xjm Date: Fri, 8 Dec 2017 12:54:13 -0600 Subject: [PATCH] Issue #2862207 by kalpaitch, jmmarquez, jeetendrakumar: Config import change profile message --- core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php | 2 +- .../tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php index e948aa584c27..ea7d29fedfc1 100644 --- a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php @@ -136,7 +136,7 @@ class ConfigImportSubscriber extends ConfigImportValidateEventSubscriberBase { // 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 9d3989cf18f2..4024b7f9d967 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php @@ -692,7 +692,7 @@ class ConfigImporterTest extends KernelTestBase { // 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); } }