function ForumTestCase::generateForumTopics

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

Parameters

array $forum: The foorum array (a row from taxonomy_term_data table).

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

File

modules/forum/forum.test, line 642

Class

ForumTestCase
Provides automated tests for the Forum module.

Code

private function generateForumTopics($forum) {
    $this->nids = array();
    for ($i = 0; $i < 5; $i++) {
        $node = $this->createForumTopic($this->forum, FALSE);
        $this->nids[] = $node->nid;
    }
}

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