diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-31 16:11:08 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-31 16:11:08 -0800 |
commit | dae2df9cb54fac699c01bd2c7b280de59c8be8b9 (patch) | |
tree | 29ff179990cd0455f887e9e9ba20c3b64275e479 /modules | |
parent | d74306729631ead14323638108e3dcdf5f926517 (diff) | |
download | brdo-dae2df9cb54fac699c01bd2c7b280de59c8be8b9.tar.gz brdo-dae2df9cb54fac699c01bd2c7b280de59c8be8b9.tar.bz2 |
Issue #1273722 by bfroehle: Fix FieldAttachTestCase::setUp() signature.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/field/tests/field.test | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/field/tests/field.test b/modules/field/tests/field.test index 3ec85075f..aacef3d2b 100644 --- a/modules/field/tests/field.test +++ b/modules/field/tests/field.test @@ -72,12 +72,13 @@ class FieldTestCase extends DrupalWebTestCase { } class FieldAttachTestCase extends FieldTestCase { - function setUp($modules = array()) { + function setUp() { // Since this is a base class for many test cases, support the same // flexibility that DrupalWebTestCase::setUp() has for the modules to be // passed in as either an array or a variable number of string arguments. - if (!is_array($modules)) { - $modules = func_get_args(); + $modules = func_get_args(); + if (isset($modules[0]) && is_array($modules[0])) { + $modules = $modules[0]; } if (!in_array('field_test', $modules)) { $modules[] = 'field_test'; |