You are here

protected function BackendTestBase::getIndex in Search API 8

Retrieves the search index used by this test.

Return value

\Drupal\search_api\IndexInterface The search index.

14 calls to BackendTestBase::getIndex()
BackendTest::checkModuleUninstall in modules/search_api_db/tests/src/Kernel/BackendTest.php
Tests whether removing the configuration again works as it should.
BackendTest::regressionTest2846932 in modules/search_api_db/tests/src/Kernel/BackendTest.php
Tests changing a field boost to a floating point value.
BackendTest::regressionTest2873023 in modules/search_api_db/tests/src/Kernel/BackendTest.php
Tests whether keywords with special characters work correctly.
BackendTest::regressionTest2925464 in modules/search_api_db/tests/src/Kernel/BackendTest.php
Tests changing of field types.
BackendTest::regressionTest2926733 in modules/search_api_db/tests/src/Kernel/BackendTest.php
Tests indexing of text tokens with leading/trailing whitespace.

... See full list

File

tests/src/Kernel/BackendTestBase.php, line 1136

Class

BackendTestBase
Provides a base class for backend tests.

Namespace

Drupal\Tests\search_api\Kernel

Code

protected function getIndex() {
  return Index::load($this->indexId);
}