You are here

protected function InstallTranslationFilePatternTest::setup in Zircon Profile 8

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

File

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

Class

InstallTranslationFilePatternTest
Tests for installer language support.

Namespace

Drupal\Tests\system\Unit\Installer

Code

protected function setup() {
  parent::setUp();
  $this->fileTranslation = new FileTranslation('filename');
  $method = new \ReflectionMethod('\\Drupal\\Core\\StringTranslation\\Translator\\FileTranslation', 'getTranslationFilesPattern');
  $method
    ->setAccessible(true);
  $this->filePatternMethod = $method;
}