From d766bbd0ec9a2a63a5c856717f0f79ae2ceaee39 Mon Sep 17 00:00:00 2001 From: Dave Long <dave@longwaveconsulting.com> Date: Sun, 5 Jan 2025 16:51:42 +0000 Subject: [PATCH] Issue #2990234 by ranjit1032002, quietone, smustgrave, tstoeckler: Removed unused class property $translationFilesDirectory --- core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php | 1 - .../Drupal/TestSite/Commands/TestSiteInstallCommand.php | 6 ------ core/tests/Drupal/Tests/BrowserTestBase.php | 8 -------- 3 files changed, 15 deletions(-) diff --git a/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php b/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php index c481b8b15e0a..2afdbdc276c5 100644 --- a/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php +++ b/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php @@ -671,7 +671,6 @@ protected function prepareEnvironment() { $this->publicFilesDirectory = $this->siteDirectory . '/files'; $this->privateFilesDirectory = $this->siteDirectory . '/private'; $this->tempFilesDirectory = $this->siteDirectory . '/temp'; - $this->translationFilesDirectory = $this->siteDirectory . '/translations'; // Ensure the configImporter is refreshed for each test. $this->configImporter = NULL; diff --git a/core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php b/core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php index 582f395ebfbf..cd6ab8b610f6 100644 --- a/core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php +++ b/core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php @@ -51,12 +51,6 @@ class TestSiteInstallCommand extends Command { */ protected array $originalShutdownCallbacks = []; - /** - * The translation file directory for the test environment. - * - * This is set in BrowserTestBase::prepareEnvironment(). - */ - protected string $translationFilesDirectory; /** * The config importer that can be used in a test. diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php index bb5042668718..dbad4cecb5f7 100644 --- a/core/tests/Drupal/Tests/BrowserTestBase.php +++ b/core/tests/Drupal/Tests/BrowserTestBase.php @@ -85,14 +85,6 @@ abstract class BrowserTestBase extends TestCase { */ protected $timeLimit = 500; - /** - * The translation file directory for the test environment. - * - * This is set in BrowserTestBase::prepareEnvironment(). - * - * @var string - */ - protected $translationFilesDirectory; /** * The config importer that can be used in a test. -- GitLab