diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-21 19:08:29 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-21 19:08:29 -0800 |
commit | 40b17474bbadbaa48f37f8de776e8cbe35efc8e3 (patch) | |
tree | b8705e7d9f930e3d1e6978d632a46bde201b1ccd /modules/gallery_unit_test | |
parent | 313f816818c6ee0db9354992005c9b3ad6da15d4 (diff) |
Add random_group().
Diffstat (limited to 'modules/gallery_unit_test')
-rw-r--r-- | modules/gallery_unit_test/helpers/test.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery_unit_test/helpers/test.php b/modules/gallery_unit_test/helpers/test.php index aa8dda88..94dac22e 100644 --- a/modules/gallery_unit_test/helpers/test.php +++ b/modules/gallery_unit_test/helpers/test.php @@ -53,6 +53,10 @@ class test_Core { return identity::create_user($rand, $rand, $password, "$rand@rand.com"); } + static function random_group() { + return identity::create_group((string)rand()); + } + static function random_name($item=null) { $rand = "name_" . rand(); if ($item && $item->is_photo()) { |