public function BEF_TestCase::testsimpletest_befOptionsSave in Better Exposed Filters 7
Same name and namespace in other branches
- 8.3 tests/better_exposed_filters.test \BEF_TestCase::testsimpletest_befOptionsSave()
- 6.3 tests/better_exposed_filters.test \BEF_TestCase::testsimpletest_befOptionsSave()
- 6 tests/better_exposed_filters.test \BEF_TestCase::testsimpletest_befOptionsSave()
- 6.2 tests/better_exposed_filters.test \BEF_TestCase::testsimpletest_befOptionsSave()
Verify BEF options are saved and redisplayed properly
@TODO: Need to extend this to cover filters in derived vs. default displays as well as editing default filter options from derived displays
File
- tests/
better_exposed_filters.test, line 87 - Tests for the Better Exposed Filters module @author mikeker
Class
- BEF_TestCase
- Functional test for Better Exposed Filters
Code
public function testsimpletest_befOptionsSave() {
$edit = array(
'options[expose][bef_format]' => 'bef',
'options[expose][bef_filter_description]' => $this
->randomName(16),
'options[expose][bef_select_all_none]' => TRUE,
'options[expose][bef_collapsible]' => TRUE,
);
$this
->drupalPost("admin/build/views/nojs/config-item/{$this->view_name}/default/filter/status", $edit, 'Update');
$this
->drupalGet("admin/build/views/nojs/config-item/{$this->view_name}/default/filter/status");
foreach ($edit as $name => $expected) {
$this
->assertFieldByName($name, $expected);
}
}