You are here

protected function ViewsDisplayCachingTest::assertViewsResultsCachePopulated in Search API 8

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

Parameters

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

1 call to ViewsDisplayCachingTest::assertViewsResultsCachePopulated()
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 164

Class

ViewsDisplayCachingTest
Tests the Search API caching plugins for Views.

Namespace

Drupal\Tests\search_api\Kernel\Views

Code

protected function assertViewsResultsCachePopulated(ViewExecutable $view) {
  $this
    ->assertNotEmpty($this
    ->getResultsCache($view));
}