1 search.test SearchPageOverride::testSearchPageHook()

File

core/modules/search/tests/search.test, line 1947
Tests for search.module.

Class

SearchPageOverride
Tests that hook_search_page runs.

Code

function testSearchPageHook() {
  $keys = 'bike shed ' . $this->randomName();
  $this->backdropGet("search/dummy_path/{$keys}");
  $this->assertText('Dummy search snippet', 'Dummy search snippet is shown');
  $this->assertText('Test page text is here', 'Page override is working');
}