diff options
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 6 |
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(); } |