function SystemAuthorizeCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/system/system.test, line 2956

Class

SystemAuthorizeCase
Tests authorize.php and related hooks.

Code

function setUp() {
    parent::setUp(array(
        'system_test',
    ));
    variable_set('allow_authorize_operations', TRUE);
    // Create an administrator user.
    $this->admin_user = $this->drupalCreateUser(array(
        'administer software updates',
    ));
    $this->drupalLogin($this->admin_user);
}

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