You are here

public function IndexStorageTest::testIndexCrud in Search API 8

Tests all CRUD operations as a queue of operations.

File

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

Class

IndexStorageTest
Tests whether the storage of search indexes works correctly.

Namespace

Drupal\Tests\search_api\Kernel\Index

Code

public function testIndexCrud() {
  $this
    ->assertInstanceOf(ConfigEntityStorage::class, $this->storage, 'The Search API Index storage controller is loaded.');
  $index = $this
    ->indexCreate();
  $this
    ->indexLoad($index);
  $this
    ->indexDelete($index);
}