->
willReturn(TRUE
);
$entity_form_display_entity_type->
expects($this->
any()) ->
method('getConfigPrefix'
) ->
willReturn(''
);
$this->moduleHandler =
$this->
createMock(ModuleHandlerInterface::
class);
$this->moduleHandler
->
expects($this->
any()) ->
method('invokeAll'
) ->
willReturn([]);
$storage_access_control_handler =
new EntityFormDisplayAccessControlHandler($entity_form_display_entity_type);
$storage_access_control_handler->
setModuleHandler($this->moduleHandler
);
$entity_type_manager =
$this->
createMock(EntityTypeManagerInterface::
class);
$entity_type_manager ->
expects($this->
any()) ->
method('getStorage'
) ->
willReturnMap([ ['entity_display',
$this->
createMock(EntityStorageInterface::
class)],
]);
$entity_type_manager ->
expects($this->
any())