protected function IndexStorageTest::indexLoad in Search API 8
Tests whether loading an index works correctly.
Parameters
\Drupal\search_api\IndexInterface $index: The index used for the test.
1 call to IndexStorageTest::indexLoad()
- 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 81
Class
- IndexStorageTest
- Tests whether the storage of search indexes works correctly.
Namespace
Drupal\Tests\search_api\Kernel\IndexCode
protected function indexLoad(IndexInterface $index) {
$loaded_index = $this->storage
->load($index
->id());
$this
->assertSame($index
->label(), $loaded_index
->label());
}