Commit d822b8dd authored by webchick's avatar webchick

Issue #1541792 follow-up by chx, Berdir, xjm: Fix for random test values occasionally failing.

parent 51c004ab
......@@ -143,7 +143,9 @@ class ListDynamicValuesTestCase extends FieldTestCase {
$this->instance = field_create_instance($this->instance);
$this->test = array(
'id' => mt_rand(1, 10),
'vid' => mt_rand(1, 10),
// Make sure this does not equal the ID so that
// list_test_dynamic_values_callback() always returns 4 values.
'vid' => mt_rand(20, 30),
'bundle' => 'test_bundle',
'label' => $this->randomName(),
);
......
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