function SystemBlockTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/system/system.test, line 1756

Class

SystemBlockTestCase

Code

function setUp() {
    parent::setUp('block');
    // Create and login user
    $admin_user = $this->drupalCreateUser(array(
        'administer blocks',
        'access administration pages',
    ));
    $this->drupalLogin($admin_user);
}

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