function ForumTestCase::doBasicTests

Runs basic tests on the indicated user.

Parameters

$user: The logged in user.

$admin: User has 'access administration pages' privilege.

1 call to ForumTestCase::doBasicTests()
ForumTestCase::testForum in modules/forum/forum.test
Tests forum functionality through the admin and user interfaces.

File

modules/forum/forum.test, line 470

Class

ForumTestCase
Provides automated tests for the Forum module.

Code

private function doBasicTests($user, $admin) {
    // Login the user.
    $this->drupalLogin($user);
    // Attempt to create forum topic under a container.
    $this->createForumTopic($this->container, TRUE);
    // Create forum node.
    $node = $this->createForumTopic($this->forum, FALSE);
    // Verify the user has access to all the forum nodes.
    $this->verifyForums($user, $node, $admin);
}

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