public function FeedsWebTestBase::createFeedNodes in Feeds 8.2
Batch create a variable amount of feed nodes. All will have the same URL configured.
Return value
An array of node ids of the nodes created.
1 call to FeedsWebTestBase::createFeedNodes()
- FeedsSchedulerTest::testScheduling in lib/
Drupal/ feeds/ Tests/ FeedsSchedulerTest.php - Test scheduling on cron.
File
- lib/
Drupal/ feeds/ Tests/ FeedsWebTestBase.php, line 317 - Common functionality for all Feeds tests.
Class
- FeedsWebTestBase
- Test basic Data API functionality.
Namespace
Drupal\feeds\TestsCode
public function createFeedNodes($id = 'syndication', $num = 20, $content_type = NULL) {
$nids = array();
for ($i = 0; $i < $num; $i++) {
$nids[] = $this
->createFeedNode($id, NULL, $this
->randomName(), $content_type);
}
return $nids;
}