You are here

public function FileValidatorTest::dataProviderValidateFileExtension in Mini site 8

Data provider for testValidateFileExtension().

File

tests/src/Unit/FileValidatorTest.php, line 38

Class

FileValidatorTest
Class FileValidatorTest.

Namespace

Drupal\Tests\minisite\Unit

Code

public function dataProviderValidateFileExtension() {
  return [
    [
      'file.txt',
      [
        'ext',
      ],
    ],
    [
      'file.txt',
      [
        'ext',
        'ext2',
      ],
    ],
    [
      'file',
      [
        'ext',
        'ext2',
      ],
    ],
    [
      'file.ext.txt',
      [
        'ext',
        'ext2',
      ],
    ],
  ];
}