function ForumTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/forum/forum.test, line 66

Class

ForumTestCase
Provides automated tests for the Forum module.

Code

function setUp() {
    parent::setUp('taxonomy', 'comment', 'forum');
    // Create users.
    $this->admin_user = $this->drupalCreateUser(array(
        'access administration pages',
        'administer modules',
        'administer blocks',
        'administer forums',
        'administer menu',
        'administer taxonomy',
        'create forum content',
    ));
    $this->edit_any_topics_user = $this->drupalCreateUser(array(
        'access administration pages',
        'create forum content',
        'edit any forum content',
        'delete any forum content',
    ));
    $this->edit_own_topics_user = $this->drupalCreateUser(array(
        'create forum content',
        'edit own forum content',
        'delete own forum content',
    ));
    $this->web_user = $this->drupalCreateUser(array());
}

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