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\UnitCode
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',
],
],
];
}