From ff301288f2ea06d76606c05bccac5957e2873a94 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 11 Apr 2010 18:33:44 +0000 Subject: - Patch #348448 by mfb, c960657, marvil07, cdale, jpmckinney: fixed PHP strict warnings when running tests and for PHP 5.3. --- modules/field/tests/field.test | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/field/tests/field.test') diff --git a/modules/field/tests/field.test b/modules/field/tests/field.test index 78afaf16f..b24dc9ea7 100644 --- a/modules/field/tests/field.test +++ b/modules/field/tests/field.test @@ -15,12 +15,13 @@ class FieldTestCase extends DrupalWebTestCase { /** * Set the default field storage backend for fields created during tests. */ - 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]; } parent::setUp($modules); // Set default storage backend. -- cgit v1.2.3