private function ContentHubReindexTest::getEntitiesData in Acquia Content Hub 8
Obtains entities sample data.
Return value
array An array of entities.
3 calls to ContentHubReindexTest::getEntitiesData()
- ContentHubReindexTest::testGetReExportEntities in tests/
src/ Unit/ Controller/ ContentHubReindexTest.php - Test the getReExportEntities function.
- ContentHubReindexTest::testReExportEntities in tests/
src/ Unit/ Controller/ ContentHubReindexTest.php - Test the reExportEntities function.
- ContentHubReindexTest::testSetExportedEntitiesToReindex in tests/
src/ Unit/ Controller/ ContentHubReindexTest.php - Test the setExportedEntitiesToReindex function.
File
- tests/
src/ Unit/ Controller/ ContentHubReindexTest.php, line 179
Class
- ContentHubReindexTest
- @coversDefaultClass \Drupal\acquia_contenthub\Controller\ContentHubReindex
Namespace
Drupal\Tests\acquia_contenthub\Unit\ControllerCode
private function getEntitiesData() {
return [
(object) [
'entity_uuid' => '00000000-0000-0000-0000-000000000000',
'entity_type' => 'node',
'entity_id' => 1,
],
(object) [
'entity_uuid' => '00000000-0000-0000-1111-000000000000',
'entity_type' => 'node',
'entity_id' => 2,
],
(object) [
'entity_uuid' => '00000000-0000-0000-2222-000000000000',
'entity_type' => 'node',
'entity_id' => 3,
],
(object) [
'entity_uuid' => '00000000-0000-0000-3333-000000000000',
'entity_type' => 'node',
'entity_id' => 4,
],
(object) [
'entity_uuid' => '00000000-0000-0000-4444-000000000000',
'entity_type' => 'node',
'entity_id' => 5,
],
];
}