From e1db0da44f452cda2d7430f1bcbfcae0b67c14cd Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Sun, 16 Mar 2014 11:41:09 -0700
Subject: [PATCH] Issue #2209461 by sun: Settings from test runner leak into
 all tests.

---
 core/modules/simpletest/lib/Drupal/simpletest/TestBase.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
index 8e452d5f283d..441c2439ece5 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
@@ -1093,6 +1093,12 @@ private function prepareEnvironment() {
     drupal_valid_test_ua($this->databasePrefix);
     conf_path(FALSE, TRUE);
 
+    // Reset settings.
+    new Settings(array(
+      // For performance, simply use the database prefix as hash salt.
+      'hash_salt' => $this->databasePrefix,
+    ));
+
     drupal_set_time_limit($this->timeLimit);
   }
 
-- 
GitLab