function SearchByPagePathsNodesTest::testSearchPages in Search by Page 6
Same name and namespace in other branches
- 7 tests/search_by_page.test \SearchByPagePathsNodesTest::testSearchPages()
Tests that pages can be searched.
File
- tests/
search_by_page.test, line 1475 - Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com
Class
- SearchByPagePathsNodesTest
- Tests for Search by Page Paths - searching nodes.
Code
function testSearchPages() {
// Search for 'walk' - should find both pages
$search_path = $this->envinfo2['page_path'];
$this
->drupalLogin($this->superuser);
$this
->drupalPost($search_path, array(
'keys' => 'walk',
), t('Search pages'));
$this
->assertText('walk', "Walk appears in search results for walk");
$this
->assertText('streets', "First page was found");
$this
->assertText('north', "Second page was found");
}