Move random::string() to be test::random_string() and have it return a

random string of any length.  Also introduce test::lorem_ipsum() and
use that in places where we want strings of words.  Fixes #1713.
This commit is contained in:
Bharat Mediratta
2011-04-25 23:26:43 -07:00
parent 8814d7742d
commit cbd04e1ae0
6 changed files with 489 additions and 16 deletions
@@ -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_" . random::string(6);
$new_name = "new_name_" . test::random_string(6);
$_POST["name"] = $new_name;
$_POST["title"] = "new title";