diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-25 13:13:53 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-25 13:13:53 +0200 |
commit | f3ecf819ec8e6841be62603c3e8a1e255fc6522d (patch) | |
tree | e714fb0ea4121c57949f1a47e812a0ca412a6de8 /tests/lib | |
parent | 553c2ad33abc07aff13afa75420a402875b458a4 (diff) | |
download | nextcloud-server-f3ecf819ec8e6841be62603c3e8a1e255fc6522d.tar.gz nextcloud-server-f3ecf819ec8e6841be62603c3e8a1e255fc6522d.zip |
extend Dummy user and group implementation to pass tests
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/group/backend.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/lib/group/backend.php b/tests/lib/group/backend.php index 34442fa7bda..95a5cf5f49c 100644 --- a/tests/lib/group/backend.php +++ b/tests/lib/group/backend.php @@ -31,8 +31,12 @@ abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase { * test cases can override this in order to clean up created groups * @return string */ - public function getGroupName() { - return uniqid('test_'); + public function getGroupName($name = null) { + if(is_null($name)) { + return uniqid('test_'); + } else { + return $name; + } } /** |