You are here

protected function ViewsCacheInvalidationTest::assertNotCached in Search API 8

Checks that the view is not cached for the given user.

Parameters

string $user_key: The key of the user for which to perform the check.

1 call to ViewsCacheInvalidationTest::assertNotCached()
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 347

Class

ViewsCacheInvalidationTest
Tests that cached Search API views get invalidated at the right occasions.

Namespace

Drupal\Tests\search_api\Kernel\Views

Code

protected function assertNotCached($user_key) {
  $this
    ->doAssertCached('assertEmpty', $user_key);
}