summaryrefslogtreecommitdiff
path: root/modules/field/tests/field.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/field/tests/field.test')
-rw-r--r--modules/field/tests/field.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/field/tests/field.test b/modules/field/tests/field.test
index 8d2a55e50..5d7a847b9 100644
--- a/modules/field/tests/field.test
+++ b/modules/field/tests/field.test
@@ -1071,7 +1071,8 @@ class FieldAttachOtherTestCase extends FieldAttachTestCase {
$entity_type = 'test_entity';
$entity = field_test_create_stub_entity(0, 0, $this->instance['bundle']);
- $form = $form_state = array();
+ $form = array();
+ $form_state = form_state_defaults();
field_attach_form($entity_type, $entity, $form, $form_state);
$langcode = FIELD_LANGUAGE_NONE;
@@ -1090,7 +1091,8 @@ class FieldAttachOtherTestCase extends FieldAttachTestCase {
$entity = field_test_create_stub_entity(0, 0, $this->instance['bundle']);
// Build the form.
- $form = $form_state = array();
+ $form = array();
+ $form_state = form_state_defaults();
field_attach_form($entity_type, $entity, $form, $form_state);
// Simulate incoming values.