AssertViewsCacheTagsTrait
trait AssertViewsCacheTagsTrait (View source)
Traits
AssertPageCacheContextsAndTagsTrait
Methods
array
assertViewsCacheTags(ViewExecutable $view, null|string[] $expected_results_cache, bool $views_caching_is_enabled, array $expected_render_array_cache_tags)
Asserts a view's result & render cache items' cache tags.
array
assertViewsCacheTagsFromStaticRenderArray(ViewExecutable $view, array $expected_render_array_cache_tags, bool $views_caching_is_enabled)
Asserts a view's result & render cache items' cache tags.
Details
protected array
assertViewsCacheTags(ViewExecutable $view, null|string[] $expected_results_cache, bool $views_caching_is_enabled, array $expected_render_array_cache_tags)
Asserts a view's result & render cache items' cache tags.
This methods uses a full view object in order to render the view.
protected array
assertViewsCacheTagsFromStaticRenderArray(ViewExecutable $view, array $expected_render_array_cache_tags, bool $views_caching_is_enabled)
Asserts a view's result & render cache items' cache tags.
This method starts with a pre bubbling basic render array.