You are here

function FieldsetHelperTestCase::setUp in Fieldset helper 6

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

./fieldset_helper.test, line 25

Class

FieldsetHelperTestCase

Code

function setUp() {

  // Enable modules
  parent::setUp('fieldset_helper');

  // Flush form clean id
  form_clean_id(NULL, TRUE);

  // Login
  $user = $this
    ->drupalCreateUser(array(
    'access administration pages',
    'administer site configuration',
    'administer fieldset state',
    'save fieldset state',
  ));
  $this
    ->drupalLogin($user);
}