You are here

protected function IndexStorageTest::setUp in Search API 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Index/IndexStorageTest.php, line 33

Class

IndexStorageTest
Tests whether the storage of search indexes works correctly.

Namespace

Drupal\Tests\search_api\Kernel\Index

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', 'key_value_expire');
  $this
    ->installEntitySchema('search_api_task');
  $this
    ->installConfig('search_api');
  $this->storage = $this->container
    ->get('entity_type.manager')
    ->getStorage('search_api_index');
}