mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-07 23:51:14 -04:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user