You are here

private function ForumTest::generateForumTopics in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/forum/tests/src/Functional/ForumTest.php \Drupal\Tests\forum\Functional\ForumTest::generateForumTopics()

Generates forum topics.

1 call to ForumTest::generateForumTopics()
ForumTest::testForum in core/modules/forum/tests/src/Functional/ForumTest.php
Tests forum functionality through the admin and user interfaces.

File

core/modules/forum/tests/src/Functional/ForumTest.php, line 722

Class

ForumTest
Tests for forum.module.

Namespace

Drupal\Tests\forum\Functional

Code

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