protected function ContentHubExportQueueControllerTest::createQueueItem in Acquia Content Hub 8
Creates a queue item object.
Parameters
string $entity_type: The entity type.
string $entity_id: The entity ID.
string $entity_uuid: The entity UUID.
Return value
object The queue item.
1 call to ContentHubExportQueueControllerTest::createQueueItem()
- ContentHubExportQueueControllerTest::testEnqueueExportEntities in tests/
src/ Unit/ Controller/ ContentHubExportQueueControllerTest.php - Test the enqueueExportEntities method.
File
- tests/
src/ Unit/ Controller/ ContentHubExportQueueControllerTest.php, line 263
Class
- ContentHubExportQueueControllerTest
- PHPUnit test for the ContentHubExportQueueController class.
Namespace
Drupal\Tests\acquia_contenthub\Unit\ControllerCode
protected function createQueueItem($entity_type, $entity_id, $entity_uuid) {
return (object) [
'data' => [
0 => [
'entity_type' => $entity_type,
'entity_id' => $entity_id,
'entity_uuid' => $entity_uuid,
],
],
];
}