$entityType ->
expects($this->
any()) ->
method('getConfigPrefix'
) ->
willReturn('node'
);
$this->moduleHandler =
$this->
createMock(ModuleHandlerInterface::
class);
$this->moduleHandler
->
expects($this->
any()) ->
method('invokeAll'
) ->
willReturn([]);
$storage_access_control_handler =
new FieldStorageConfigAccessControlHandler($storageType);
$storage_access_control_handler->
setModuleHandler($this->moduleHandler
);
$entity_type_manager =
$this->
createMock(EntityTypeManagerInterface::
class);
$entity_type_manager ->
expects($this->
any()) ->
method('getDefinition'
) ->
willReturnMap([ ['field_storage_config', TRUE,
$storageType],
['node', TRUE,
$entityType],
]);
$entity_type_manager