Index: drupal_web_test_case.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/Attic/drupal_web_test_case.php,v
retrieving revision 1.2.2.3.2.54
diff -u -p -r1.2.2.3.2.54 drupal_web_test_case.php
--- drupal_web_test_case.php	13 Nov 2010 01:03:47 -0000	1.2.2.3.2.54
+++ drupal_web_test_case.php	30 Nov 2010 19:08:34 -0000
@@ -1124,12 +1124,16 @@ class DrupalWebTestCase extends DrupalTe
 
 //    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.
+    // 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.
+    // @todo Remove this compatibility layer in Drupal 8, and only accept
+    // $modules as a single array argument.
     $modules = func_get_args();
-    foreach ($modules as $module) {
-//      drupal_install_modules(array($module), TRUE);
-      drupal_install_modules(array($module));
+    if (isset($modules[0]) && is_array($modules[0])) {
+      $modules = $modules[0];
+    }
+    if ($modules) {
+      drupal_install_modules($modules);
     }
 
     // Because the schema is static cached, we need to flush
