summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/drupal_web_test_case.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 1944c659f..946777eda 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -368,7 +368,8 @@ class DrupalWebTestCase extends UnitTestCase {
drupal_install_system();
// Add the specified modules to the list of modules in the default profile.
- $modules = array_unique(array_merge(func_get_args(), drupal_verify_profile('default', 'en')));
+ $args = func_get_args();
+ $modules = array_unique(array_merge(drupal_verify_profile('default', 'en'), $args));
drupal_install_modules($modules);
// Store the list of modules for use in subsequent drupalModuleEnable calls.