You are here

public function BEF_TestCase::testsimpletest_befOptionsExist in Better Exposed Filters 7

Same name and namespace in other branches
  1. 8.3 tests/better_exposed_filters.test \BEF_TestCase::testsimpletest_befOptionsExist()
  2. 6.3 tests/better_exposed_filters.test \BEF_TestCase::testsimpletest_befOptionsExist()
  3. 6 tests/better_exposed_filters.test \BEF_TestCase::testsimpletest_befOptionsExist()
  4. 6.2 tests/better_exposed_filters.test \BEF_TestCase::testsimpletest_befOptionsExist()

Verify BEF options display for binary and unlimited option fields

File

tests/better_exposed_filters.test, line 61
Tests for the Better Exposed Filters module @author mikeker

Class

BEF_TestCase
Functional test for Better Exposed Filters

Code

public function testsimpletest_befOptionsExist() {

  // Check node->status (binary type)
  $this
    ->drupalGet("admin/build/views/nojs/config-item/{$this->view_name}/default/filter/status");
  $this
    ->assertText(t('Display exposed filter as'), 'Verify BEF settings dropdown label displays', 'Better Exposed Filters');
  $this
    ->assertFieldById('edit-options-expose-bef-format');

  // Check node->status (binary type)
  $this
    ->drupalGet("admin/build/views/nojs/config-item/{$this->view_name}/default/filter/type");
  $this
    ->assertText(t('Display exposed filter as'), 'Verify BEF settings dropdown label displays', 'Better Exposed Filters');
  $this
    ->assertFieldById('edit-options-expose-bef-format');
}