summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-12-18 01:50:16 +0000
committerDries Buytaert <dries@buytaert.net>2010-12-18 01:50:16 +0000
commitd12eba1705dfa3c6f7da93f81c403b33de8fd8fc (patch)
treea369f5ee79a2386d817f421d2bb3d43c79721695 /modules/simpletest/drupal_web_test_case.php
parenta686c81335caf84c7fdb3fb4a4b5e950266441c0 (diff)
downloadbrdo-d12eba1705dfa3c6f7da93f81c403b33de8fd8fc.tar.gz
brdo-d12eba1705dfa3c6f7da93f81c403b33de8fd8fc.tar.bz2
- Patch #890128 by carlos8f, sumitk: comment body missing if comment module enabled after a content type module.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index e572e43c9..e9d5ad43d 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1326,16 +1326,22 @@ class DrupalWebTestCase extends DrupalTestCase {
* are enabled later.
*/
protected function resetAll() {
- // Rebuild caches.
+ // Reset all static variables.
drupal_static_reset();
+ // Reset the list of enabled modules.
+ module_list(TRUE);
+
+ // Reset cached schema for new database prefix. This must be done before
+ // drupal_flush_all_caches() so rebuilds can make use of the schema of
+ // modules enabled on the cURL side.
+ drupal_get_schema(NULL, TRUE);
+
+ // Perform rebuilds and flush remaining caches.
drupal_flush_all_caches();
// Reload global $conf array and permissions.
$this->refreshVariables();
$this->checkPermissions(array(), TRUE);
-
- // Reset statically cached schema for new database prefix.
- drupal_get_schema(NULL, TRUE);
}
/**