public function ArchiveValidatorTest::testValidate in Mini site 8
Test validateFiles() method.
@dataProvider dataProviderValidate @covers \Drupal\minisite\ArchiveValidator::validate
File
- tests/
src/ Unit/ ArchiveValidatorTest.php, line 27
Class
- ArchiveValidatorTest
- Class ArchiveValidatorTest.
Namespace
Drupal\Tests\minisite\UnitCode
public function testValidate($files, $extensions, $message) {
$this
->expectException(InvalidContentArchiveException::class);
$this
->expectExceptionMessage($message);
ArchiveValidator::validate($files, $extensions);
}