protected function IndexStorageTest::indexDelete in Search API 8
Tests whether deleting an index works correctly.
Parameters
\Drupal\search_api\IndexInterface $index: The index used for the test.
1 call to IndexStorageTest::indexDelete()
- IndexStorageTest::testIndexCrud in tests/
src/ Kernel/ Index/ IndexStorageTest.php - Tests all CRUD operations as a queue of operations.
File
- tests/
src/ Kernel/ Index/ IndexStorageTest.php, line 92
Class
- IndexStorageTest
- Tests whether the storage of search indexes works correctly.
Namespace
Drupal\Tests\search_api\Kernel\IndexCode
protected function indexDelete(IndexInterface $index) {
$this->storage
->delete([
$index,
]);
$loaded_index = $this->storage
->load($index
->id());
$this
->assertNull($loaded_index);
}