Commit 1ee1269b authored by webchick's avatar webchick

Issue #1043998 by lyricnz, sun: Fixed Strict PHP warning in Fields UI tests.

parent 8ee87a0f
......@@ -10,8 +10,15 @@
*/
class FieldUITestCase extends DrupalWebTestCase {
function setUp($modules = array()) {
array_unshift($modules, 'field_test');
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.
$modules = func_get_args();
if (isset($modules[0]) && is_array($modules[0])) {
$modules = $modules[0];
}
$modules[] = 'field_test';
parent::setUp($modules);
// Create test user.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment