private function ForumTest::generateForumTopics in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/forum/src/Tests/ForumTest.php \Drupal\forum\Tests\ForumTest::generateForumTopics()
Generates forum topics.
1 call to ForumTest::generateForumTopics()
- ForumTest::testForum in core/
modules/ forum/ src/ Tests/ ForumTest.php - Tests forum functionality through the admin and user interfaces.
File
- core/
modules/ forum/ src/ Tests/ ForumTest.php, line 676 - Contains \Drupal\forum\Tests\ForumTest.
Class
- ForumTest
- Create, view, edit, delete, and change forum entries and verify its consistency in the database.
Namespace
Drupal\forum\TestsCode
private function generateForumTopics() {
$this->nids = array();
for ($i = 0; $i < 5; $i++) {
$node = $this
->createForumTopic($this->forum, FALSE);
$this->nids[] = $node
->id();
}
}