You are here

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

1 call to SearchApiDbTest::searchNoResults()
SearchApiDbTest::testFramework in ./search_api_db.test

File

./search_api_db.test, line 200

Class

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

Code

protected function searchNoResults() {
  $results = $this
    ->buildSearch('test')
    ->execute();
  $this
    ->assertEqual($results['result count'], 0, 'No search results returned without indexing.');
  $this
    ->assertEqual(array_keys($results['results']), array(), 'No search results returned without indexing.');
  $this
    ->assertEqual($results['ignored'], array(), 'No keys were ignored.');
  $this
    ->assertEqual($results['warnings'], array(), 'No warnings were displayed.');
}