You are here

protected function SearchApiWebTest::index in Search API 7

Returns the test index in use by this test case.

Return value

SearchApiIndex The test index.

3 calls to SearchApiWebTest::index()
SearchApiWebTest::createIndex in ./search_api.test
Creates a test index 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.

File

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

Class

SearchApiWebTest
Class for testing Search API functionality via the UI.

Code

protected function index() {
  return search_api_index_load($this->index_id, TRUE);
}