private function ForumTestCase::doBasicTests

7.x forum.test private ForumTestCase::doBasicTests($user, $admin)

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 drupal-7.x/modules/forum/forum.test
Tests forum functionality through the admin and user interfaces.

File

drupal-7.x/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);
}