You are here

protected function ViewsDisplayCachingTest::assertViewsResultsCacheNotPopulated in Search API 8

Checks that the query result of the given view is not currently cached.

Parameters

\Drupal\views\ViewExecutable $view: The view to check.

1 call to ViewsDisplayCachingTest::assertViewsResultsCacheNotPopulated()
ViewsDisplayCachingTest::testDisplayCacheability in tests/src/Kernel/Views/ViewsDisplayCachingTest.php
Tests whether the search display plugin for a new view is available.

File

tests/src/Kernel/Views/ViewsDisplayCachingTest.php, line 154

Class

ViewsDisplayCachingTest
Tests the Search API caching plugins for Views.

Namespace

Drupal\Tests\search_api\Kernel\Views

Code

protected function assertViewsResultsCacheNotPopulated(ViewExecutable $view) {
  $this
    ->assertEmpty($this
    ->getResultsCache($view));
}