protected function SearchApiDbTest::editServer in Search API Database Search 7
1 call to SearchApiDbTest::editServer()
File
- ./
search_api_db.test, line 359
Class
- SearchApiDbTest
- Class for testing index and search capabilities using the Database search module.
Code
protected function editServer() {
$server = search_api_server_load($this->server_id, TRUE);
$server->options['min_chars'] = 4;
$server->options['partial_matches'] = FALSE;
$success = (bool) $server
->save();
$this
->assertTrue($success, 'The server was successfully edited.');
$this
->clearIndex();
$this
->indexItems();
// Reset the internal cache so the new values will be available.
search_api_index_load($this->index_id, TRUE);
}