function ForumIndexTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/forum/forum.test, line 684

Class

ForumIndexTestCase
Tests the forum index listing.

Code

function setUp() {
    parent::setUp('taxonomy', 'comment', 'forum');
    // Create a test user.
    $web_user = $this->drupalCreateUser(array(
        'create forum content',
        'edit own forum content',
        'edit any forum content',
        'administer nodes',
    ));
    $this->drupalLogin($web_user);
}

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