Change record status: 
Project: 
Introduced in branch: 
11.5.x
Introduced in version: 
11.5.0
Description: 

The $entityDefinitionUpdateManager and $state property declarations have been moved from individual test classes into EntityDefinitionTestTrait, which already requires both services to be available in any class that uses it.

Previously, each test class that used the trait was responsible for declaring its own typed property (or docblock-typed property) for these services, leading to duplication across:

  • EntityDefinitionUpdateTest
  • EntityDefinitionUpdateProviderTest
  • EntityDefinitionUpdateMultipleTypesTest
  • FieldableEntityDefinitionUpdateTest

The trait now declares both properties:

protected EntityDefinitionUpdateManagerInterface $entityDefinitionUpdateManager;
protected StateInterface $state;

If you are using EntityDefinitionTestTrait and declaring these properties you can remove your declarations and rely on the trait.

Impacts: 
Module developers