You are here

private function ForumTestCase::doBasicTests in Drupal 7

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 425
Tests for forum.module.

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);
}