function AccessDeniedTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/system/system.test, line 1060

Class

AccessDeniedTestCase
Tests custom access denied functionality.

Code

function setUp() {
    parent::setUp();
    // Create an administrative user.
    $this->admin_user = $this->drupalCreateUser(array(
        'access administration pages',
        'administer site configuration',
        'administer blocks',
    ));
}

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