private function ForumTest::generateForumTopics in Drupal 9
Same name and namespace in other branches
- 8 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 728
Class
- ForumTest
- Tests for forum.module.
Namespace
Drupal\Tests\forum\FunctionalCode
private function generateForumTopics() {
$this->nids = [];
for ($i = 0; $i < 5; $i++) {
$node = $this
->createForumTopic($this->forum, FALSE);
$this->nids[] = $node
->id();
}
}