You are here

protected function SearchApiDbTest::clearIndex in Search API Database Search 7

2 calls to SearchApiDbTest::clearIndex()
SearchApiDbTest::editServer in ./search_api_db.test
SearchApiDbTest::testFramework in ./search_api_db.test

File

./search_api_db.test, line 932

Class

SearchApiDbTest
Class for testing index and search capabilities using the Database search module.

Code

protected function clearIndex() {
  $success = search_api_index_load($this->index_id)
    ->clear();
  $this
    ->assertTrue($success, 'The index was successfully cleared.');
}