diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-27 18:29:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-27 18:29:17 +0000 |
commit | 1fe938527fdef458ed62270e0804ab484f3dd16b (patch) | |
tree | 24082b9e23988c8871a9d3c87f19c2e4f47afed0 /modules/field_ui | |
parent | ee050856caa13f589fe31122104490d9d00d56f9 (diff) | |
download | brdo-1fe938527fdef458ed62270e0804ab484f3dd16b.tar.gz brdo-1fe938527fdef458ed62270e0804ab484f3dd16b.tar.bz2 |
- Patch #886152 by effulgentsia: fix tests.
Diffstat (limited to 'modules/field_ui')
-rw-r--r-- | modules/field_ui/field_ui.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/field_ui/field_ui.test b/modules/field_ui/field_ui.test index f1102488c..e67fc2bb7 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))), |