only in patch2: unchanged: --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -1458,10 +1458,16 @@ class DrupalWebTestCase extends DrupalTestCase { // Include the testing profile. variable_set('install_profile', $this->profile); - $profile_details = install_profile_info($this->profile, 'en'); // Install the modules specified by the testing profile. - module_enable($profile_details['dependencies'], FALSE); + $profiles = drupal_get_profiles($this->profile); + $profile_dependencies = array(); + + foreach ($profiles as $profile) { + $info = install_profile_info($profile); + $profile_dependencies = array_unique(array_merge($profile_dependencies, $info['dependencies'])); + } + module_enable($profile_dependencies); // Install modules needed for this test. This could have been passed in as // either a single array argument or a variable number of string arguments.