summaryrefslogtreecommitdiff
path: root/modules/field_ui
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-05-30 09:04:40 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-05-30 09:04:40 -0700
commit09669835c48db5a433d1cc2b8923c2ed11ba7005 (patch)
tree088627392fed8f0cb25f13a867dc2bb73fce8959 /modules/field_ui
parenteeb0bd868226101c493b54ccec9a8280e74b4da4 (diff)
downloadbrdo-09669835c48db5a433d1cc2b8923c2ed11ba7005.tar.gz
brdo-09669835c48db5a433d1cc2b8923c2ed11ba7005.tar.bz2
Issue #1043998 by lyricnz, sun: Fixed Strict PHP warning in Fields UI tests.
Diffstat (limited to 'modules/field_ui')
-rw-r--r--modules/field_ui/field_ui.test11
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/field_ui/field_ui.test b/modules/field_ui/field_ui.test
index 77f79ce33..5d2ff9bfa 100644
--- a/modules/field_ui/field_ui.test
+++ b/modules/field_ui/field_ui.test
@@ -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.