diff --git a/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php b/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php
index af87366121164415b4bb10115f0f495b5bc9c93a..112ad1266565e6f115976e3bfd909df626f76ec5 100644
--- a/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php
+++ b/core/modules/system/tests/src/Functional/System/SitesDirectoryHardeningTest.php
@@ -3,7 +3,6 @@
 namespace Drupal\Tests\system\Functional\System;
 
 use Drupal\Core\Site\Settings;
-use Drupal\Core\StringTranslation\StringTranslationTrait;
 use Drupal\Tests\BrowserTestBase;
 
 /**
@@ -12,7 +11,6 @@
  * @group system
  */
 class SitesDirectoryHardeningTest extends BrowserTestBase {
-  use StringTranslationTrait;
 
   /**
    * {@inheritdoc}