You are here

protected function BackendTestBase::getServer in Search API 8

Retrieves the search server used by this test.

Return value

\Drupal\search_api\ServerInterface The search server.

4 calls to BackendTestBase::getServer()
BackendTest::checkModuleUninstall in modules/search_api_db/tests/src/Kernel/BackendTest.php
Tests whether removing the configuration again works as it should.
BackendTest::editServerMinChars in modules/search_api_db/tests/src/Kernel/BackendTest.php
Edits the server to change the "Minimum word length" setting.
BackendTest::setServerMatchMode in modules/search_api_db/tests/src/Kernel/BackendTest.php
Edits the server to sets the match mode.
BackendTestBase::checkDefaultServer in tests/src/Kernel/BackendTestBase.php
Tests the server that was installed through default configuration files.

File

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

Class

BackendTestBase
Provides a base class for backend tests.

Namespace

Drupal\Tests\search_api\Kernel

Code

protected function getServer() {
  return Server::load($this->serverId);
}