function DBLogTestCase::setUp

Enable modules and create users with specific permissions.

Overrides DrupalWebTestCase::setUp

File

modules/dblog/dblog.test, line 38

Class

DBLogTestCase
Tests logging messages to the database.

Code

function setUp() {
    parent::setUp('dblog', 'blog', 'poll');
    // Create users.
    $this->big_user = $this->drupalCreateUser(array(
        'administer site configuration',
        'access administration pages',
        'access site reports',
        'administer users',
    ));
    $this->any_user = $this->drupalCreateUser(array());
}

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