$default_cacheability =
(new CacheableMetadata()) ->
setCacheTags([ '_media_test_embed_filter_access:media:1',
'_media_test_embed_filter_access:user:2',
'config:image.style.thumbnail',
'file:1',
'media:1',
'media_view',
'user:2',
]) ->
setCacheContexts(['timezone', 'user.permissions'
]) ->
setCacheMaxAge(Cache::PERMANENT
);
return [ 'data-entity-uuid only ⇒ default view mode used' =>
[ [ 'data-entity-type' => 'media',
'data-entity-uuid' =>
static::EMBEDDED_ENTITY_UUID,
],
EntityDisplayRepositoryInterface::DEFAULT_DISPLAY_MODE,
[],
$default_cacheability,
],