function SearchPageOverride::testSearchPageHook in Drupal 7
File
- modules/
search/ search.test, line 1966 - Tests for search.module.
Class
- SearchPageOverride
- Tests that hook_search_page runs.
Code
function testSearchPageHook() {
$keys = 'bike shed ' . $this
->randomName();
$this
->drupalGet("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');
}