diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 42c128c..94a9fa5 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -1721,9 +1721,10 @@ class DrupalWebTestCase extends DrupalTestCase { $this->storeCache($modules_cache_key_suffix); } } - - // Reset/rebuild all data structures after enabling the modules. - $this->resetAll(); + else { + // Reset/rebuild all data structures after enabling the modules. + $this->resetAll(); + } // Ensure that the session is not written to the new environment and replace // the global $user session with uid 1 from the new test site.