protected function EntityShareCronFunctionalTest::getEntitiesDataArray in Entity Share Cron 3.0.x
File
- tests/
src/ Functional/ EntityShareCronFunctionalTest.php, line 52
Class
- EntityShareCronFunctionalTest
- General functional test class.
Namespace
Drupal\Tests\entity_share_cron\FunctionalCode
protected function getEntitiesDataArray() {
$nodes_infos = [];
for ($i = 1; $i <= 300; $i++) {
$nodes_infos['es_test_' . $i] = $this
->getCompleteNodeInfos([
'title' => [
'value' => 'Node ' . $i,
'checker_callback' => 'getValue',
],
'status' => [
'value' => NodeInterface::PUBLISHED,
'checker_callback' => 'getValue',
],
]);
}
return [
'node' => [
'en' => $nodes_infos,
],
];
}