You are here

public function FileValidatorTest::dataProviderNormaliseExtensions in Mini site 8

Data provider for testNormaliseExtensions().

File

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

Class

FileValidatorTest
Class FileValidatorTest.

Namespace

Drupal\Tests\minisite\Unit

Code

public function dataProviderNormaliseExtensions() {
  return [
    [
      [],
      [],
    ],
    [
      '',
      [],
    ],
    [
      ' ',
      [],
    ],
    [
      ', ',
      [],
    ],
    [
      ' , ',
      [],
    ],
    [
      '  , ',
      [],
    ],
    [
      '  ,',
      [],
    ],
    [
      'a b c',
      [
        'a',
        'b',
        'c',
      ],
    ],
    [
      'a,b,c',
      [
        'a',
        'b',
        'c',
      ],
    ],
    [
      'a, b, c',
      [
        'a',
        'b',
        'c',
      ],
    ],
    [
      'a, b , c',
      [
        'a',
        'b',
        'c',
      ],
    ],
    [
      'a, b c',
      [
        'a',
        'b',
        'c',
      ],
    ],
    [
      '   a,    b   c',
      [
        'a',
        'b',
        'c',
      ],
    ],
  ];
}