You are here

protected function RequiredByRoleEmailFieldWebTestCase::setUp in Required by role 7

Setup method.

Overrides RequiredByRoleBasic::setUp

File

tests/required_by_role_test/RequiredByRoleEmailFieldWebTestCase.test, line 29
Tests for the Email field.

Class

RequiredByRoleEmailFieldWebTestCase
@file Tests for the Email field.

Code

protected function setUp() {
  parent::setUp('field_ui', 'required_by_role', 'email');
  $rid = (int) $this->required_fields_rid;
  $settings = array(
    "instance[settings][required_by_role][{$rid}]" => $rid,
  );
  $this
    ->drupalLogin($this
    ->getRequiredUser());
  $this
    ->createEmailField(NULL, $settings);
}