diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-04-26 10:42:45 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-04-26 10:42:45 -0700 |
commit | 3a928db5053d17b36d73af9689059e4be5b8dcb6 (patch) | |
tree | 8421642b1438739c6bef9cb09ef8919b13803257 | |
parent | a097b499251aea0f5965e3ed6c3bc60d8b385e2a (diff) | |
download | brdo-3a928db5053d17b36d73af9689059e4be5b8dcb6.tar.gz brdo-3a928db5053d17b36d73af9689059e4be5b8dcb6.tar.bz2 |
Issue #1541792 follow-up by chx, Berdir, xjm: Fix for random test values occasionally failing.
-rw-r--r-- | modules/field/modules/list/tests/list.test | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/field/modules/list/tests/list.test b/modules/field/modules/list/tests/list.test index e77d8c602..7a0f46c6d 100644 --- a/modules/field/modules/list/tests/list.test +++ b/modules/field/modules/list/tests/list.test @@ -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(), ); |