Index: modules/simpletest/drupal_web_test_case.php =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v retrieving revision 1.115 diff -u -r1.115 drupal_web_test_case.php --- modules/simpletest/drupal_web_test_case.php 11 Jun 2009 04:16:24 -0000 1.115 +++ modules/simpletest/drupal_web_test_case.php 11 Jun 2009 23:54:52 -0000 @@ -989,9 +990,18 @@ $this->preloadRegistry(); // Add the specified modules to the list of modules in the default profile. - $args = func_get_args(); - $modules = array_unique(array_merge(drupal_get_profile_modules('default', 'en'), $args)); - drupal_install_modules($modules, TRUE); + // Install the modules specified by the default profile. + $core_modules = drupal_get_profile_modules('default', 'en'); + drupal_install_modules($core_modules, TRUE); + + node_type_clear(); + + // Install additional modules one at a time in order to make sure that the + // list of modules is updated between each module's installation. + $modules = func_get_args(); + foreach ($modules as $module) { + drupal_install_modules(array($module), TRUE); + } // Because the schema is static cached, we need to flush // it between each run. If we don't, then it will contain