diff --git a/core/modules/config/src/Tests/ConfigImporterTest.php b/core/modules/config/src/Tests/ConfigImporterTest.php index 4e48190..0be9a52 100644 --- a/core/modules/config/src/Tests/ConfigImporterTest.php +++ b/core/modules/config/src/Tests/ConfigImporterTest.php @@ -7,6 +7,7 @@ namespace Drupal\config\Tests; +use Drupal\Component\Utility\Html; use Drupal\Component\Utility\SafeMarkup; use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\ConfigImporterException; @@ -295,7 +296,7 @@ function testSecondaryWriteSecondaryFirst() { $logs = $this->configImporter->getErrors(); $this->assertEqual(count($logs), 1); - $this->assertEqual($logs[0], SafeMarkup::format("Unexpected error during import with operation @op for @name: @message", array('@op' => 'create', '@name' => $name_primary, '@message' => "'config_test' entity with ID 'secondary' already exists."))); + $this->assertEqual($logs[0], "Unexpected error during import with operation create for $name_primary: " . Html::escape("'config_test' entity with ID 'secondary' already exists.")); } /**