function ForumTestCase::viewForumTopics

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 660

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.