summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-21 19:08:29 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-21 19:08:29 -0800
commit40b17474bbadbaa48f37f8de776e8cbe35efc8e3 (patch)
treeb8705e7d9f930e3d1e6978d632a46bde201b1ccd /modules/gallery_unit_test/helpers
parent313f816818c6ee0db9354992005c9b3ad6da15d4 (diff)
Add random_group().
Diffstat (limited to 'modules/gallery_unit_test/helpers')
-rw-r--r--modules/gallery_unit_test/helpers/test.php4
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()) {