From 1fe938527fdef458ed62270e0804ab484f3dd16b Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Wed, 27 Oct 2010 18:29:17 +0000 Subject: [PATCH] - Patch #886152 by effulgentsia: fix tests. --- modules/field_ui/field_ui.test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/field_ui/field_ui.test b/modules/field_ui/field_ui.test index f1102488c536..e67fc2bb75db 100644 --- a/modules/field_ui/field_ui.test +++ b/modules/field_ui/field_ui.test @@ -481,7 +481,10 @@ class FieldUIManageDisplayTestCase extends FieldUITestCase { 'fields[_add_new_field][field_name]' => 'field_test', ); $this->fieldUIAddNewField('admin/structure/types/manage/' . $this->hyphen_type, $edit); - $value = rand(1, 100); + // For this test, use a formatter setting value that is an integer unlikely + // to appear in a rendered node other than as part of the field being tested + // (for example, unlikely to be part of the "Submitted by ... on ..." line). + $value = 12345; $settings = array( 'type' => $this->type, 'field_test' => array(LANGUAGE_NONE => array(array('value' => $value))), -- GitLab