You are here

public function FieldDisplayLabelTestCase::setUp in Field Display Label 7

Set up the test environment.

Overrides DrupalWebTestCase::setUp

File

./field_display_label.test, line 30
Test file for Field Display Label module.

Class

FieldDisplayLabelTestCase
@file Test file for Field Display Label module.

Code

public function setUp() {
  parent::setUp(array(
    'text',
    'field_display_label',
  ));
  $this->labelForm = $this
    ->randomName(8);
  $this->labelDisplay = $this
    ->randomName(10);

  // Create and log in our privileged user.
  $this->privilegedUser = $this
    ->drupalCreateUser(array(
    'administer site configuration',
    'administer content types',
    'administer nodes',
    'create page content',
  ));
  $this
    ->drupalLogin($this->privilegedUser);
}