You are here

function FieldsetHelperTestCase::testFieldsetHelperStateManagerDefault in Fieldset helper 6

Test default fieldset state for the test form loaded in SimpleTest.

File

./fieldset_helper.test, line 161

Class

FieldsetHelperTestCase

Code

function testFieldsetHelperStateManagerDefault() {

  // Not sure is this is considerd okay but it is easier then doing a get with a custom cookie.
  $this->content = drupal_get_form('fieldset_helper_test_form');
  $this
    ->assertRaw('<fieldset id="fieldset-collapsible" class=" collapsible">', t('Check default fieldset state.'));
  $this
    ->assertRaw('<fieldset id="fieldset-collapsed" class=" collapsible collapsed">', t('Check default fieldset state.'));
}