private function ForumTestCase::generateForumTopics

7.x forum.test private ForumTestCase::generateForumTopics($forum)

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 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 597
Tests for forum.module.

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