public function SearchApiDbTest::testFramework in Search API Database Search 7
File
- ./
search_api_db.test, line 40
Class
- SearchApiDbTest
- Class for testing index and search capabilities using the Database search module.
Code
public function testFramework() {
if (Database::getConnection()
->databaseType() == 'mysql') {
try {
db_query("SET SESSION sql_mode = 'ANSI,ONLY_FULL_GROUP_BY'");
} catch (Exception $e) {
// It was worth a try, but if it fails just go on.
}
}
$this
->drupalLogin($this
->drupalCreateUser(array(
'administer search_api',
)));
$this
->insertItems();
$this
->createServer();
$this
->createIndex();
$this
->searchNoResults();
$this
->indexItems();
$this
->searchSuccess1();
$this
->checkFacets();
$this
->regressionTests();
$this
->editServerPartial();
$this
->searchSuccessPartial();
$this
->editServer();
$this
->searchSuccess2();
$this
->clearIndex();
$this
->searchNoResults();
$this
->regressionTests2();
$this
->uninstallModule();
}