You are here

public function S3FileOriginLocatorTest::sourceDataProvider in Acquia Content Hub 8.2

Provides test cases for s3 file source.

Return value

array Test cases.

File

modules/acquia_contenthub_s3/tests/src/Kernel/S3FileOriginLocatorTest.php, line 90

Class

S3FileOriginLocatorTest
Tests the S3FileOriginLocator.

Namespace

Drupal\Tests\acquia_contenthub_s3\Kernel

Code

public function sourceDataProvider() : array {
  return [
    [
      'test-bucket',
      'test-root',
      FALSE,
    ],
    [
      'test-bucket',
      'test-root',
      TRUE,
    ],
    [
      'test-bucket',
      'not-same-root',
      FALSE,
    ],
    [
      'test-bucket',
      'not-same-root',
      TRUE,
    ],
    [
      'not-same-bucket',
      'test-root',
      FALSE,
    ],
    [
      'not-same-bucket',
      'test-root',
      TRUE,
    ],
    [
      'not-same-bucket',
      '',
      FALSE,
    ],
    [
      'not-same-bucket',
      '',
      TRUE,
    ],
  ];
}