You are here

private function ForumTestCase::viewForumTopics in Drupal 7

Views forum topics to test the display of an active forum block.

@todo The logic here is completely incorrect, since the active forum topics block is determined by comments on the node, not by views. @todo DIE

Parameters

$nids: An array of forum node IDs.

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

File

modules/forum/forum.test, line 615
Tests for forum.module.

Class

ForumTestCase
Provides automated tests for the Forum module.

Code

private function viewForumTopics($nids) {
  for ($i = 0; $i < 2; $i++) {
    foreach ($nids as $nid) {
      $this
        ->drupalGet('node/' . $nid);
      $this
        ->drupalGet('node/' . $nid);
      $this
        ->drupalGet('node/' . $nid);
    }
  }
}