Commit 1fe93852 authored by Dries's avatar Dries
Browse files

- Patch #886152 by effulgentsia: fix tests.

parent ee050856
......@@ -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))),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment