protected function ViewsCacheInvalidationTest::assertCached in Search API 8
Checks that the view is cached for the given user.
Parameters
string $user_key: The key of the user for which to perform the check.
1 call to ViewsCacheInvalidationTest::assertCached()
- ViewsCacheInvalidationTest::testQueryCacheInvalidation in tests/
src/ Kernel/ Views/ ViewsCacheInvalidationTest.php - Tests that a cached views query result is invalidated at the right moments.
File
- tests/
src/ Kernel/ Views/ ViewsCacheInvalidationTest.php, line 337
Class
- ViewsCacheInvalidationTest
- Tests that cached Search API views get invalidated at the right occasions.
Namespace
Drupal\Tests\search_api\Kernel\ViewsCode
protected function assertCached($user_key) {
$this
->doAssertCached('assertNotEmpty', $user_key);
}