private function ContentHubEntityExportControllerTest::getSampleContentHubEntity in Acquia Content Hub 8
Returns sample ContentHub entity object.
Return value
object ContentHub object.
2 calls to ContentHubEntityExportControllerTest::getSampleContentHubEntity()
- ContentHubEntityExportControllerTest::testExportEntities in tests/
src/ Unit/ Controller/ ContentHubEntityExportControllerTest.php - Tests exportEntities method.
- ContentHubEntityExportControllerTest::testQueueExportedEntity in tests/
src/ Unit/ Controller/ ContentHubEntityExportControllerTest.php - Tests queueExportedEntity method.
File
- tests/
src/ Unit/ Controller/ ContentHubEntityExportControllerTest.php, line 480
Class
- ContentHubEntityExportControllerTest
- Unit test for ContentHubEntityExportController class.
Namespace
Drupal\Tests\acquia_contenthub\Unit\ControllerCode
private function getSampleContentHubEntity() {
return (object) [
'entity_type' => 'node',
'entity_id' => 1,
'entity_uuid' => '00000000-0000-0000-0000-000000000000',
'modified' => '2016-12-09T20:51:45+00:00',
'origin' => '11111111-1111-1111-1111-111111111111',
];
}