You are here

protected function SearchApiWebTest::server in Search API 7

Returns the test server in use by this test case.

Return value

SearchApiServer The test server.

5 calls to SearchApiWebTest::server()
SearchApiWebTest::checkServerTasks in ./search_api.test
Tests whether the server tasks system works correctly.
SearchApiWebTest::createServer in ./search_api.test
Creates a test server via the UI and tests whether this works correctly.
SearchApiWebTest::deleteServer in ./search_api.test
Tests whether deleting the server works correctly.
SearchApiWebTest::doSearch in ./search_api.test
Executes a search on the test index.
SearchApiWebTest::indexItems in ./search_api.test
Tests indexing via the UI "Index now" functionality.

File

./search_api.test, line 114
Contains the SearchApiWebTest and the SearchApiUnitTest classes.

Class

SearchApiWebTest
Class for testing Search API functionality via the UI.

Code

protected function server() {
  return search_api_server_load($this->server_id, TRUE);
}