function InstallTranslationFilePatternTest::testFilesPatternValid
@dataProvider providerValidTranslationFiles
File
-
core/
modules/ system/ tests/ src/ Kernel/ Installer/ InstallTranslationFilePatternTest.php, line 45
Class
- InstallTranslationFilePatternTest
- Tests for installer language support.
Namespace
Drupal\Tests\system\Kernel\InstallerCode
public function testFilesPatternValid($langcode, $filename) : void {
$pattern = $this->filePatternMethod
->invoke($this->fileTranslation, $langcode);
$this->assertNotEmpty(preg_match($pattern, $filename));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.