You are here

public function AssetRefreshManagerTest::providerTestInterruptedFetch in Media: Acquia DAM 8

Provides test data for interrupted fetches related tests.

Return value

array Test data (request query options, response, expected asset ids).

File

tests/src/Unit/AssetRefreshManagerTest.php, line 435

Class

AssetRefreshManagerTest
AssetRefreshManager Service test.

Namespace

Drupal\Tests\media_acquiadam\Unit

Code

public function providerTestInterruptedFetch() {
  return [
    [
      [
        'limit' => 3,
        'offset' => 0,
        'starttime' => self::LAST_READ_TIMESTAMP,
        'endtime' => self::REQUEST_TIME,
      ],
      [
        'total' => 6,
        'notifications' => [
          [
            'action' => 'asset_property',
            'source' => [
              'type' => 'asset',
              'id' => 10,
            ],
          ],
          [
            'action' => 'asset_property',
            'source' => [
              'type' => 'asset',
              'id' => 11,
            ],
          ],
          [
            'action' => 'asset_version',
            'source' => [
              'type' => 'asset',
              'id' => 1000,
            ],
          ],
        ],
      ],
      [
        10,
        11,
        1000,
      ],
      3,
    ],
  ];
}