protected function AcquiadamServiceTest::getTopLevelFoldersData in Media: Acquia DAM 8
Sample data for the top level folder content.
Return value
array A minimal array of test content as the API would return.
2 calls to AcquiadamServiceTest::getTopLevelFoldersData()
- AcquiadamServiceTest::getFolderData in tests/
src/ Unit/ AcquiadamServiceTest.php - Get the specific folder from an array of folders.
- AcquiadamServiceTest::setUp in tests/
src/ Unit/ AcquiadamServiceTest.php
File
- tests/
src/ Unit/ AcquiadamServiceTest.php, line 187
Class
- AcquiadamServiceTest
- Acquia DAM REST extension tests.
Namespace
Drupal\Tests\media_acquiadam\UnitCode
protected function getTopLevelFoldersData() {
return [
(object) [
'id' => '90672',
'name' => 'Marketing',
'folders' => [
(object) [
'id' => '90673',
'name' => 'Slideshows',
],
(object) [
'id' => '90674',
'name' => 'Ad Ideas',
],
],
],
(object) [
'id' => '90786',
'name' => 'Sales',
'folders' => [
(object) [
'id' => '90787',
'name' => 'Spreadsheets',
],
(object) [
'id' => '90788',
'name' => 'Logos',
],
],
],
(object) [
'id' => '90832',
'name' => 'Support',
],
];
}