diff --git a/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php
index d6bd64f..b98a035 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php
@@ -465,4 +465,18 @@ protected function unregisterStreamWrapper($scheme, $type) {
     }
   }
 
+  /**
+   * Changes in-memory settings.
+   *
+   * @param string $name
+   *   The name of the setting to set.
+   * @param mixed $value
+   *   The value of the setting.
+   */
+  protected function settingsSet($name, $value) {
+    $settings = Settings::getAll();
+    $settings[$name] = $value;
+    new Settings($settings);
+  }
+
 }
diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
index 5aba155..06f85e4 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
@@ -1342,22 +1342,6 @@ protected function exceptionHandler($exception) {
   }
 
   /**
-   * Changes in memory settings.
-   *
-   * @param $name
-   *   The name of the setting to return.
-   * @param $value
-   *   The value of the setting.
-   *
-   * @see \Drupal\Core\Site\Settings::get()
-   */
-  protected function settingsSet($name, $value) {
-    $settings = Settings::getAll();
-    $settings[$name] = $value;
-    new Settings($settings);
-  }
-
-  /**
    * Generates a unique random string of ASCII characters of codes 32 to 126.
    *
    * Do not use this method when special characters are not possible (e.g., in
