You are here

protected function BEF_TestBase::setBefSettings in Better Exposed Filters 7.3

Sets various BEF exposed form settings. If $error is specified it also asserts that the error text apepars when trying to apply $settings.

Note: This routine expects the caller to save the view, as needed.

13 calls to BEF_TestBase::setBefSettings()
BEF_TestCheckboxes::test_befPageDisplayCheckboxes in tests/better_exposed_filters.test
Verify that checkboxes are rendered correctly on a page display
BEF_TestDatepicker::test_befDatepicker in tests/better_exposed_filters.test
Verifies Datepicker options using Drupal core date fields.
BEF_TestDatepicker::test_befDatepickerCustom in tests/better_exposed_filters.test
Verifies Datepicker options using a custom (Date module) date field.
BEF_TestHidden::test_befPageDisplayHidden in tests/better_exposed_filters.test
Verify hidden exposed filters are rendered correctly on a page display
BEF_TestLinks::test_befFilterLinks in tests/better_exposed_filters.test
Verify filters rendered as links.

... See full list

File

tests/better_exposed_filters_TestBase.php, line 264
Base class for testing the Better Exposed Filters module. @author mikeker

Class

BEF_TestBase
Helper functions for Better Exposed Filters tests.

Code

protected function setBefSettings($settings, $error = '') {
  $this
    ->drupalPost($this
    ->getBefSettingsUrl(), $settings, 'Apply');
  if (!empty($error)) {
    $this
      ->assertText($error);
  }
}