summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-03 19:53:42 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-03 19:53:42 +0000
commitd722c9690949fdf8fa5fdec96bab82f18c9dbe58 (patch)
tree60206d319a22920a682eab93d94bd0610fb9cdd7
parent3f052180dc7a6576e9976b23e397528ccb4899d3 (diff)
downloadbrdo-d722c9690949fdf8fa5fdec96bab82f18c9dbe58.tar.gz
brdo-d722c9690949fdf8fa5fdec96bab82f18c9dbe58.tar.bz2
- Patch #265498 by boombatower et al: tearDown() doesn't reset the module list.
-rw-r--r--modules/simpletest/drupal_web_test_case.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 1d90bd866..438017355 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -441,6 +441,12 @@ class DrupalWebTestCase extends UnitTestCase {
// Ensure that the internal logged in variable is reset.
$this->_logged_in = FALSE;
+ // Reload module list to ensure that test module hooks aren't called after tests.
+ module_list(TRUE);
+
+ // Rebuild caches.
+ $this->refreshVariables();
+
// Close the CURL handler.
$this->curlClose();
}