You are here

public function FileValidatorTest::testNormaliseExtensions in Mini site 8

Test normaliseExtensions() method.

@dataProvider dataProviderNormaliseExtensions @covers \Drupal\minisite\FileValidator::normaliseExtensions

File

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

Class

FileValidatorTest
Class FileValidatorTest.

Namespace

Drupal\Tests\minisite\Unit

Code

public function testNormaliseExtensions($extensions, $expected) {
  $actual = FileValidator::normaliseExtensions($extensions);
  $this
    ->assertEquals($expected, $actual);
}