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