diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:08:29 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:08:29 +0000 |
commit | c33d0f7be84eef3f3cd3a6d4855fc315adb3c554 (patch) | |
tree | 27a517956cb20111ff78a14bc725a62464affe0a /modules/simpletest/drupal_web_test_case.php | |
parent | 3a0f6b33720b1a939ec2f828bfefd31b6c51817f (diff) | |
download | brdo-c33d0f7be84eef3f3cd3a6d4855fc315adb3c554.tar.gz brdo-c33d0f7be84eef3f3cd3a6d4855fc315adb3c554.tar.bz2 |
#399642 follow-up by carlos8f: Replace drupal_install_modules() with an improved module_enable().
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index c5d2926e9..9ba935559 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -1136,18 +1136,18 @@ class DrupalWebTestCase extends DrupalTestCase { $this->preloadRegistry(); - // Include the default profile + // Include the default profile. variable_set('install_profile', 'standard'); $profile_details = install_profile_info('standard', 'en'); // Install the modules specified by the default profile. - drupal_install_modules($profile_details['dependencies'], TRUE); + module_enable($profile_details['dependencies'], FALSE, TRUE); drupal_static_reset('_node_types_build'); if ($modules = func_get_args()) { // Install modules needed for this test. - drupal_install_modules($modules, TRUE); + module_enable($modules, TRUE, TRUE); } // Because the schema is static cached, we need to flush @@ -1158,7 +1158,7 @@ class DrupalWebTestCase extends DrupalTestCase { // Run default profile tasks. $install_state = array(); - drupal_install_modules(array('standard'), TRUE); + module_enable(array('standard'), FALSE, TRUE); // Rebuild caches. node_types_rebuild(); |