/**
* Tests updating a shared table field definition.
*/
public function testOnFieldStorageDefinitionUpdateShared() { // Install the test entity type with an additional field. Use a multi-column
// field so that field name and column name(s) do not match.
$field = BaseFieldDefinition::
create('shape'
) // Avoid creating a foreign key which is irrelevant for this test.
->
setSetting('foreign_key_name', NULL
) ->
setName('shape'
) ->
setProvider('entity_test'
);
$this->state->
set('entity_test.additional_base_field_definitions',
[ 'shape' =>
$field,
]);
$this->entityDefinitionUpdateManager->
installFieldStorageDefinition( 'shape',
'entity_test',
'entity_test',
$field );
// Make sure the field is not marked as NOT NULL initially.