function InstallTranslationFilePatternTest::setUp

Same name in other branches
  1. 9 core/modules/system/tests/src/Kernel/Installer/InstallTranslationFilePatternTest.php \Drupal\Tests\system\Kernel\Installer\InstallTranslationFilePatternTest::setUp()
  2. 8.9.x core/modules/system/tests/src/Kernel/Installer/InstallTranslationFilePatternTest.php \Drupal\Tests\system\Kernel\Installer\InstallTranslationFilePatternTest::setup()
  3. 11.x core/modules/system/tests/src/Kernel/Installer/InstallTranslationFilePatternTest.php \Drupal\Tests\system\Kernel\Installer\InstallTranslationFilePatternTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/system/tests/src/Kernel/Installer/InstallTranslationFilePatternTest.php, line 35

Class

InstallTranslationFilePatternTest
Tests for installer language support.

Namespace

Drupal\Tests\system\Kernel\Installer

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.