public function FacetapiTestCase::drupalPost in Facet API 7
Same name and namespace in other branches
- 7.2 tests/facetapi.test \FacetapiTestCase::drupalPost()
Overrides DrupalWebTestCase::drupalPost()
Clears static variables on settings submission. This is OK because the script execution persists when the form is submitted by the test unlike a real form post where the page has to reload.
Overrides DrupalWebTestCase::drupalPost
6 calls to FacetapiTestCase::drupalPost()
- CurrentSearchTestCase::currentSearchEnableBlock in contrib/
current_search/ tests/ current_search.test - Enables a current search block via the UI.
- FacetapiAdminInterfaceTestCase::testDisplayFormRedirect in tests/
facetapi.test - Tests display form redirects.
- FacetapiAdminInterfaceTestCase::testWidgetSelect in tests/
facetapi.test - Tests that an admin can selet a valid widget.
- FacetapiBugFixTestCase::testValidDefaults in tests/
facetapi.test - Tests bug fixed at http://drupal.org/node/1443340.
- FacetapiTestCase::facetapiEnableFacet in tests/
facetapi.test - Enables a facet via the UI.
File
- tests/
facetapi.test, line 39 - Tests for the Facet API module.
Class
- FacetapiTestCase
- Base class for all Facet API test cases.
Code
public function drupalPost($path, $edit, $submit, array $options = array(), array $headers = array(), $form_html_id = NULL, $extra_post = NULL) {
parent::drupalPost($path, $edit, $submit, $options, $headers, $form_html_id, $extra_post);
if (t('Save configuration') == $submit) {
drupal_static('facetapi_get_searcher_settings', array(), TRUE);
drupal_static('facetapi_get_enabled_facets', array(), TRUE);
}
}