You are here

public function UserRegistrationPasswordAdministrationTestCase::setUp in User registration password 7

Implements setUp().

Overrides DrupalWebTestCase::setUp

File

tests/user_registrationpassword_admin.test, line 27
Administration tests for user_registrationpassword.module.

Class

UserRegistrationPasswordAdministrationTestCase
Class UserRegistrationPasswordAdministrationTestCase.

Code

public function setUp() {
  $modules = func_get_args();
  if (isset($modules[0]) && is_array($modules[0])) {
    $modules = $modules[0];
  }
  $modules[] = 'field_test';
  $modules[] = 'user_registrationpassword';
  parent::setUp($modules);
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'administer permissions',
    'administer users',
  ));
}