X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FConfig%2FConfigEntityStatusTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FConfig%2FConfigEntityStatusTest.php;h=20ceef4051535aadefc48b4f85b76ad5c40e0dd1;hp=021136de668e336aee04b462dc03a424caa97e8c;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStatusTest.php b/web/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStatusTest.php index 021136de6..20ceef405 100644 --- a/web/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStatusTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStatusTest.php @@ -22,7 +22,7 @@ class ConfigEntityStatusTest extends KernelTestBase { * Tests the enabling/disabling of entities. */ public function testCRUD() { - $entity = entity_create('config_test', [ + $entity = \Drupal::entityTypeManager()->getStorage('config_test')->create([ 'id' => strtolower($this->randomMachineName()), ]); $this->assertTrue($entity->status(), 'Default status is enabled.');