private function ForumTestCase::generateForumTopics in Drupal 7
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 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;
}
}