X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FConfig%2FConfigImportRenameValidationTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FConfig%2FConfigImportRenameValidationTest.php;h=9c1875c85d201ab6f2ba22ffcc2711d409ff3985;hp=e755d5fd88b4679d5e3ae46b8204998c5b5efdf6;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php b/web/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php index e755d5fd8..9c1875c85 100644 --- a/web/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php @@ -67,7 +67,7 @@ class ConfigImportRenameValidationTest extends KernelTestBase { public function testRenameValidation() { // Create a test entity. $test_entity_id = $this->randomMachineName(); - $test_entity = entity_create('config_test', [ + $test_entity = \Drupal::entityTypeManager()->getStorage('config_test')->create([ 'id' => $test_entity_id, 'label' => $this->randomMachineName(), ]); @@ -95,7 +95,7 @@ class ConfigImportRenameValidationTest extends KernelTestBase { 'node.type.' . $content_type->id() . '::config_test.dynamic.' . $test_entity_id, ]; $renames = $this->configImporter->getUnprocessedConfiguration('rename'); - $this->assertIdentical($expected, $renames); + $this->assertSame($expected, $renames); // Try to import the configuration. We expect an exception to be thrown // because the staged entity is of a different type. @@ -138,7 +138,7 @@ class ConfigImportRenameValidationTest extends KernelTestBase { 'config_test.old::config_test.new' ]; $renames = $this->configImporter->getUnprocessedConfiguration('rename'); - $this->assertIdentical($expected, $renames); + $this->assertSame($expected, $renames); // Try to import the configuration. We expect an exception to be thrown // because the rename is for simple configuration.