public function FacetapiSearchPageInterfaceTestCase::testFormAccess in Facet API 7
Same name and namespace in other branches
- 6.3 tests/facetapi.test \FacetapiSearchPageInterfaceTestCase::testFormAccess()
- 7.2 tests/facetapi.test \FacetapiSearchPageInterfaceTestCase::testFormAccess()
File
- tests/facetapi.test, line 275
- Tests for the Facet API module.
Class
- FacetapiSearchPageInterfaceTestCase
Code
public function testFormAccess() {
$this
->drupalLogin($this->adminUser);
$this
->facetapiEnableFacet();
$this
->facetapiEnableFacetBlock();
$this
->drupalLogin($this->authenticatedUser);
$path = 'facetapi_test/search/testkeys';
$options = array(
'query' => array(
'f' => array(
0 => 'enabled:testone',
),
),
);
$this
->drupalGet($path, $options);
$this
->clickLink('testkeys');
$this
->assertUrl($path);
$path = 'facetapi_test/search';
$options = array(
'query' => array(
'keys' => 'testkeys',
'f' => array(
0 => 'enabled:testone',
),
),
);
$this
->drupalGet($path, $options);
$this
->clickLink('testkeys');
$this
->assertUrl($path, array(
'query' => array(
'keys' => 'testkeys',
),
));
}