You are here

public function CacheabilityTest::setUp in Search API 8

Overrides SearchApiBrowserTestBase::setUp

File

tests/src/Functional/CacheabilityTest.php, line 32

Class

CacheabilityTest
Tests the cacheability metadata of Search API.

Namespace

Drupal\Tests\search_api\Functional

Code

public function setUp() {
  parent::setUp();

  // Set up example structure and content and populate the test index with
  // that content.
  $this
    ->setUpExampleStructure();
  $this
    ->insertExampleContent();
  \Drupal::getContainer()
    ->get('search_api.index_task_manager')
    ->addItemsAll(Index::load($this->indexId));
  $this
    ->indexItems($this->indexId);
}