private function ForumTest::doBasicTests

Runs basic tests on the indicated user.

Parameters

$user: The logged in user.

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

1 call to ForumTest::doBasicTests()
ForumTest::testForum in drupal/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php
Tests forum functionality through the admin and user interfaces.

File

drupal/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php, line 452
Tests for forum.module.

Class

ForumTest
Provides automated tests for the Forum module.

Namespace

Drupal\forum\Tests

Code

private function doBasicTests($user, $admin) {

  // Login the user.
  $this
    ->drupalLogin($user);

  // Attempt to create forum topic under a container.
  $this
    ->createForumTopic($this->forumContainer, 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);
}