You are here

protected function SearchApiWebTest::checkOverview in Search API 7

Checks whether the server and index are correctly listed in the overview.

1 call to SearchApiWebTest::checkOverview()
SearchApiWebTest::testFramework in ./search_api.test
Tests correct admin UI, indexing and search behavior.

File

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

Class

SearchApiWebTest
Class for testing Search API functionality via the UI.

Code

protected function checkOverview() {
  $this
    ->drupalGet('admin/config/search/search_api');
  $this
    ->assertText('Search API test server', 'Server displayed.');
  $this
    ->assertText('Search API test index', 'Index displayed.');
  $this
    ->assertNoText(t('There are no search servers or indexes defined yet.'), '"No servers" message not displayed.');
}