You are here

public function InstallTranslationFilePatternTest::testFilesPatternInvalid in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Unit/Installer/InstallTranslationFilePatternTest.php \Drupal\Tests\system\Unit\Installer\InstallTranslationFilePatternTest::testFilesPatternInvalid()

@dataProvider providerInvalidTranslationFiles

File

core/modules/system/tests/src/Unit/Installer/InstallTranslationFilePatternTest.php, line 63
Contains \Drupal\Tests\system\Unit\Installer\InstallTranslationFilePatternTest.

Class

InstallTranslationFilePatternTest
Tests for installer language support.

Namespace

Drupal\Tests\system\Unit\Installer

Code

public function testFilesPatternInvalid($langcode, $filename) {
  $pattern = $this->filePatternMethod
    ->invoke($this->fileTranslation, $langcode);
  $this
    ->assertEmpty(preg_match($pattern, $filename));
}