protected function BackendTest::getIndexDbInfo in Search API 8
Retrieves the database information for the test index.
Parameters
string|null $index_id: (optional) The ID of the index whose database information should be retrieved.
Return value
array The database information stored by the backend for the test index.
7 calls to BackendTest::getIndexDbInfo()
- BackendTest::checkIndexWithoutFields in modules/
search_api_db/ tests/ src/ Kernel/ BackendTest.php - Checks the correct handling of an index without fields.
- BackendTest::checkModuleUninstall in modules/
search_api_db/ tests/ src/ Kernel/ BackendTest.php - Tests whether removing the configuration again works as it should.
- BackendTest::checkMultiValuedInfo in modules/
search_api_db/ tests/ src/ Kernel/ BackendTest.php - Verifies that the stored information about multi-valued fields is correct.
- BackendTest::checkServerBackend in modules/
search_api_db/ tests/ src/ Kernel/ BackendTest.php - Tests that all tables and all columns have been created.
- BackendTest::regressionTest2938646 in modules/
search_api_db/ tests/ src/ Kernel/ BackendTest.php - Tests indexing of items with boost.
File
- modules/
search_api_db/ tests/ src/ Kernel/ BackendTest.php, line 952
Class
- BackendTest
- Tests index and search capabilities using the Database search backend.
Namespace
Drupal\Tests\search_api_db\KernelCode
protected function getIndexDbInfo($index_id = NULL) {
$index_id = $index_id ?: $this->indexId;
return \Drupal::keyValue(Database::INDEXES_KEY_VALUE_STORE_ID)
->get($index_id);
}