diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php index af9a625264..9afc0eaf30 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php @@ -175,7 +175,7 @@ public function testUpdateEntityTypeWithoutInCodeDefinition() { */ public function testUpdateFieldableEntityTypeWithoutInCodeDefinition() { $entity_type = clone $this->entityTypeManager->getDefinition('entity_test_update'); - $field_storage_definitions = $this->entityFieldManager->getFieldStorageDefinitions('entity_test_update'); + $field_storage_definitions = \Drupal::service('entity_field.manager')->getFieldStorageDefinitions('entity_test_update'); // Remove the entity type definition. This is the same thing as removing the // code that defines it.