summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 4e0d55ffb..8b5655d51 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1033,10 +1033,13 @@ class DrupalWebTestCase extends DrupalTestCase {
$this->preloadRegistry();
+ // Include the default profile
+ require_once("./profiles/default/default.profile");
+ $profile_details = install_profile_info('default', 'en');
+
// Add the specified modules to the list of modules in the default profile.
// Install the modules specified by the default profile.
- $core_modules = drupal_get_profile_modules('default', 'en');
- drupal_install_modules($core_modules, TRUE);
+ drupal_install_modules($profile_details['dependencies'], TRUE);
node_type_clear();