summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index ccc2f354b..2c6d9c919 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -566,6 +566,8 @@ class DrupalUnitTestCase extends DrupalTestCase {
$this->originalPrefix = $db_prefix;
$this->originalFileDirectory = file_directory_path();
+ spl_autoload_register('db_autoload');
+
// Reset all statics so that test is performed with a clean environment.
drupal_static_reset();