X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FConfig%2FConfigEntityNormalizeTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FConfig%2FConfigEntityNormalizeTest.php;h=4cbc16a0e04281f9f9165e949bac1dc166975b5a;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=5a137b9f4f4e00d6525834ceea8606160fa01993;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php b/web/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php index 5a137b9f4..4cbc16a0e 100644 --- a/web/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php @@ -24,7 +24,7 @@ class ConfigEntityNormalizeTest extends KernelTestBase { } public function testNormalize() { - $config_entity = entity_create('config_test', ['id' => 'system', 'label' => 'foobar', 'weight' => 1]); + $config_entity = \Drupal::entityTypeManager()->getStorage('config_test')->create(['id' => 'system', 'label' => 'foobar', 'weight' => 1]); $config_entity->save(); // Modify stored config entity, this is comparable with a schema change.