private function ForumTestCase::viewForumTopics

7.x forum.test private ForumTestCase::viewForumTopics($nids)

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