public function CurrentSearchInterfaceTestCase::testEnableBlock in Facet API 7
Same name and namespace in other branches
- 7.2 contrib/current_search/tests/current_search.test \CurrentSearchInterfaceTestCase::testEnableBlock()
File
- contrib/
current_search/ tests/ current_search.test, line 104 - Test cases for the Current Search Blocks module.
Class
- CurrentSearchInterfaceTestCase
- Test cases for operations taken through the admin UI.
Code
public function testEnableBlock() {
// Enable the standard current search block via the UI.
$this
->drupalLogin($this->adminUser);
$this
->currentSearchEnableBlock();
// Test that block is positioned on the search page.
$this
->drupalLogin($this->authenticatedUser);
$this
->drupalGet('facetapi_test/search', array(
'query' => array(
'keys' => 'test',
),
));
$raw = t('Current search');
$this
->assertRaw($raw, t('Current search block displayed on search page.'), 'Current Search Blocks');
}