You are here

public function CdnStreamWrapperConstraintValidatorTest::provideTestValidate in CDN 8.3

File

tests/src/Kernel/CdnStreamWrapperConstraintValidatorTest.php, line 53

Class

CdnStreamWrapperConstraintValidatorTest
@coversDefaultClass \Drupal\cdn\Plugin\Validation\Constraint\CdnStreamWrapperConstraintValidator @group cdn

Namespace

Drupal\Tests\cdn\Kernel

Code

public function provideTestValidate() {
  $data = [];
  $data['public, registered by default'] = [
    'public',
    TRUE,
  ];
  $data['private, prohibited by rule'] = [
    'private',
    FALSE,
  ];
  $data['unregistered'] = [
    'unregistered',
    FALSE,
  ];
  $data['custom, provided by test module'] = [
    'dummy-remote',
    TRUE,
  ];
  return $data;
}