aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/group/database.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/group/database.php')
-rw-r--r--tests/lib/group/database.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/group/database.php b/tests/lib/group/database.php
index 3e05c656061..9b39ac00452 100644
--- a/tests/lib/group/database.php
+++ b/tests/lib/group/database.php
@@ -28,8 +28,10 @@ class Test_Group_Database extends Test_Group_Backend {
* test cases can override this in order to clean up created groups
* @return string
*/
- public function getGroupName() {
- $name=uniqid('test_');
+ public function getGroupName($name = null) {
+ if(is_null($name)) {
+ $name=uniqid('test_');
+ }
$this->groups[]=$name;
return $name;
}