function SiteMaintenanceTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/system/system.test, line 1196

Class

SiteMaintenanceTestCase
Tests site maintenance functionality.

Code

function setUp() {
    parent::setUp();
    // Create a user allowed to access site in maintenance mode.
    $this->user = $this->drupalCreateUser(array(
        'access site in maintenance mode',
    ));
    // Create an administrative user.
    $this->admin_user = $this->drupalCreateUser(array(
        'administer site configuration',
        'access site in maintenance mode',
    ));
    $this->drupalLogin($this->admin_user);
}

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