You are here

protected function InstallTranslationFilePatternTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Kernel/Installer/InstallTranslationFilePatternTest.php \Drupal\Tests\system\Kernel\Installer\InstallTranslationFilePatternTest::setup()
  2. 9 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 33

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');
  $method
    ->setAccessible(TRUE);
  $this->filePatternMethod = $method;
}