diff options
author | David Rothstein <drothstein@gmail.com> | 2012-07-08 23:58:02 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-07-08 23:58:02 -0400 |
commit | e0961c9015d0446479b3c8df9c05039813fad951 (patch) | |
tree | f999cd9caac629f472113a15aa2ddf6b4848a169 /modules/dblog | |
parent | efe6bdfd25b46a3bcb7dda5bf94937baea80ca79 (diff) | |
download | brdo-e0961c9015d0446479b3c8df9c05039813fad951.tar.gz brdo-e0961c9015d0446479b3c8df9c05039813fad951.tar.bz2 |
Issue #1560028 by bleen18, sun, thehong: Remove all calls to rand() from tests.
Diffstat (limited to 'modules/dblog')
-rw-r--r-- | modules/dblog/dblog.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dblog/dblog.test b/modules/dblog/dblog.test index 2e9810b86..a91356c85 100644 --- a/modules/dblog/dblog.test +++ b/modules/dblog/dblog.test @@ -424,7 +424,7 @@ class DBLogTestCase extends DrupalWebTestCase { $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++, ); @@ -473,7 +473,7 @@ class DBLogTestCase extends DrupalWebTestCase { $count = $this->getTypeCount($types); $this->assertEqual(array_sum($count), $type['count'], 'Count matched'); } - + // Clear all logs and make sure the confirmation message is found. $this->drupalPost('admin/reports/dblog', array(), t('Clear log messages')); $this->assertText(t('Database log cleared.'), t('Confirmation message found')); |