->
method('getAccessControlHandler'
) ->
willReturnMap([ ['field_storage_config',
$storage_access_control_handler],
]);
$container =
new Container();
$container->
set('entity_type.manager',
$entity_type_manager);
$container->
set('uuid',
$this->
createMock(UuidInterface::
class));
$container->
set('cache_contexts_manager',
$this->
prophesize(CacheContextsManager::
class));
\Drupal::
setContainer($container);
$this->entity =
new FieldStorageConfig([ 'field_name' => 'test_field',
'entity_type' => 'node',
'type' => 'boolean',
'id' => 'node.test_field',
'uuid' => '6f2f259a-f3c7-42ea-bdd5-111ad1f85ed1',
]);
$this->accessControlHandler =
$storage_access_control_handler;
} /**
* Assert method to verify the access by operations.
*
* @param array $allow_operations
* A list of allowed operations.
* @param \Drupal\Core\Session\AccountInterface $user
* The account to use for get access.
*
* @internal
*/