$this->
assertNotEmpty($results_cache_item, 'Results cache item found.'
);
if ($results_cache_item) { $this->
assertEqualsCanonicalizing($expected_results_cache,
$results_cache_item->tags
);
} } else { $this->
assertNull($results_cache_item, 'Results cache item not found.'
);
} // Check Views render cache item cache tags.
$original['#cache'
] +=
['contexts' =>
[]];
$original['#cache'
]['contexts'
] = Cache::
mergeContexts($original['#cache'
]['contexts'
],
$this->container->
getParameter('renderer.config'
)['required_cache_contexts'
]);
$render_cache_item =
$render_cache->
get($original);
if ($views_caching_is_enabled === TRUE
) { $this->
assertNotEmpty($render_cache_item, 'Render cache item found.'
);
if ($render_cache_item) { $this->
assertEqualsCanonicalizing($expected_render_array_cache_tags,
$render_cache_item['#cache'
]['tags'
]);
} } else { $this->
assertNull($render_cache_item, 'Render cache item not found.'
);
} }