You are here

protected function ViewsCacheabilityMetadataExportTest::setUp in Search API 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Views/ViewsCacheabilityMetadataExportTest.php, line 86

Class

ViewsCacheabilityMetadataExportTest
Tests that cacheability metadata is included when Views config is exported.

Namespace

Drupal\Tests\search_api\Kernel\Views

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('search_api_task');
  $this
    ->installConfig([
    'search_api',
    'search_api_test_node_indexing',
  ]);
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this->viewExecutableFactory = $this->container
    ->get('views.executable');
  $this->state = $this->container
    ->get('state');
}