diff --git a/core/modules/dblog/lib/Drupal/dblog/Tests/DBLogTest.php b/core/modules/dblog/lib/Drupal/dblog/Tests/DBLogTest.php index ce02b0a..ff50891 100644 --- a/core/modules/dblog/lib/Drupal/dblog/Tests/DBLogTest.php +++ b/core/modules/dblog/lib/Drupal/dblog/Tests/DBLogTest.php @@ -430,7 +430,7 @@ class DBLogTest extends WebTestBase { $severity = WATCHDOG_EMERGENCY; for ($j = 0; $j < 3; $j++) { $types[] = $type = array( - 'count' => mt_rand(1, 5), + 'count' => $j + 1, 'type' => $type_name, 'severity' => $severity++, ); diff --git a/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php b/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php index ce76545..283d169 100644 --- a/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php @@ -135,7 +135,7 @@ class TranslationTest extends FieldTestBase { $options = array(); $entities = array(); $entity_type = 'test_entity'; - $entity_count = mt_rand(2, 5); + $entity_count = 5; $available_langcodes = field_available_languages($this->entity_type, $this->field); for ($id = 1; $id <= $entity_count; ++$id) { diff --git a/core/modules/system/lib/Drupal/system/Tests/Actions/LoopTest.php b/core/modules/system/lib/Drupal/system/Tests/Actions/LoopTest.php index 97667c0..2a6ff0a 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Actions/LoopTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Actions/LoopTest.php @@ -44,7 +44,7 @@ class LoopTest extends WebTestBase { // recursion level should be kept low enough to prevent the xdebug // infinite recursion protection mechanism from aborting the request. // See http://drupal.org/node/587634. - variable_set('actions_max_stack', mt_rand(3, 12)); + variable_set('actions_max_stack', 7); $this->triggerActions(); }