From 40b17474bbadbaa48f37f8de776e8cbe35efc8e3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 21 Jan 2010 19:08:29 -0800 Subject: Add random_group(). --- modules/gallery_unit_test/helpers/test.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/gallery_unit_test') 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()) { -- cgit v1.2.3