Skip to content
Snippets Groups Projects
Commit 09669835 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent eeb0bd86
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment