function ProfileTestCase::setUp

Overrides DrupalWebTestCase::setUp

1 call to ProfileTestCase::setUp()
ProfileBlockTestCase::setUp in modules/profile/profile.test
Sets up a Drupal site for running functional and integration tests.
1 method overrides ProfileTestCase::setUp()
ProfileBlockTestCase::setUp in modules/profile/profile.test
Sets up a Drupal site for running functional and integration tests.

File

modules/profile/profile.test, line 15

Class

ProfileTestCase
A class for common methods for testing profile fields.

Code

function setUp() {
    parent::setUp('profile');
    variable_set('user_register', USER_REGISTER_VISITORS);
    $this->admin_user = $this->drupalCreateUser(array(
        'administer users',
        'access user profiles',
        'administer blocks',
    ));
    // This is the user whose profile will be edited.
    $this->normal_user = $this->drupalCreateUser();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.