public function InstallTranslationFilePatternTest::testFilesPatternInvalid in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Kernel/Installer/InstallTranslationFilePatternTest.php \Drupal\Tests\system\Kernel\Installer\InstallTranslationFilePatternTest::testFilesPatternInvalid()
@dataProvider providerInvalidTranslationFiles
File
- core/
modules/ system/ tests/ src/ Kernel/ Installer/ InstallTranslationFilePatternTest.php, line 63
Class
- InstallTranslationFilePatternTest
- Tests for installer language support.
Namespace
Drupal\Tests\system\Kernel\InstallerCode
public function testFilesPatternInvalid($langcode, $filename) {
$pattern = $this->filePatternMethod
->invoke($this->fileTranslation, $langcode);
$this
->assertEmpty(preg_match($pattern, $filename));
}