diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-12-15 14:57:00 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-12-15 14:57:00 -0800 |
commit | cd48b89f3166e7fa732b5cb06d33fba018af9127 (patch) | |
tree | 9ad981df0d736dc186463aac4676fdba2bc232b8 /modules/gallery/tests/Albums_Controller_Test.php | |
parent | 45c63f4d118bfc99924edb8685442035349af6db (diff) |
Consolidate all the random code into a random helper that offers:
random::hash()
random::string()
random::percent()
random::int()
So that we don't have lots of different ways to get random values all
over the code. Follow-on to #1527.
Diffstat (limited to 'modules/gallery/tests/Albums_Controller_Test.php')
-rw-r--r-- | modules/gallery/tests/Albums_Controller_Test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/tests/Albums_Controller_Test.php b/modules/gallery/tests/Albums_Controller_Test.php index 86c74890..35a3bdbb 100644 --- a/modules/gallery/tests/Albums_Controller_Test.php +++ b/modules/gallery/tests/Albums_Controller_Test.php @@ -31,7 +31,7 @@ class Albums_Controller_Test extends Gallery_Unit_Test_Case { $album = test::random_album(); // Randomize to avoid conflicts. - $new_name = "new_name_" . mt_rand(); + $new_name = "new_name_" . random::string(6); $_POST["name"] = $new_name; $_POST["title"] = "new title"; |