diff --git a/core/modules/simpletest/src/KernelTestBase.php b/core/modules/simpletest/src/KernelTestBase.php
index 5abf972..ceb57c2 100644
--- a/core/modules/simpletest/src/KernelTestBase.php
+++ b/core/modules/simpletest/src/KernelTestBase.php
@@ -586,4 +586,20 @@ protected function render(array &$elements) {
     return $content;
   }
 
+  /**
+   * 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);
+  }
+
 }
diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php
index a9a369c..0e75805 100644
--- a/core/modules/simpletest/src/TestBase.php
+++ b/core/modules/simpletest/src/TestBase.php
@@ -1403,22 +1403,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 pseudo-random string of ASCII characters of codes 32 to 126.
    *
    * Do not use this method when special characters are not possible (e.g., in
