summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-05 15:54:56 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-05 15:54:56 +0000
commitdc1af5e2909258358348a17b17a3f87850396e32 (patch)
tree176d60ea2503a6d99d305bec0369373587f298c3 /modules/simpletest/drupal_web_test_case.php
parent9a0618b98f0befd74a2230548f7bb837093eeb84 (diff)
downloadbrdo-dc1af5e2909258358348a17b17a3f87850396e32.tar.gz
brdo-dc1af5e2909258358348a17b17a3f87850396e32.tar.bz2
- Patch #321161 by Damien Tournoud: properly flush cache between tests.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 2a0c38c26..43795312b 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -770,8 +770,10 @@ class DrupalWebTestCase {
// 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.
+ // Reload module list and implementations to ensure that test module hooks
+ // aren't called after tests.
module_list(TRUE);
+ module_implements(MODULE_IMPLEMENTS_CLEAR_CACHE);
// Rebuild caches.
$this->refreshVariables();