diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-24 21:56:08 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-24 21:56:08 +0200 |
commit | 553c2ad33abc07aff13afa75420a402875b458a4 (patch) | |
tree | bebffd80e224c54ac27ccc24dae37a79422087b2 /tests/lib/group/backend.php | |
parent | 121d52860e929cc2a784bc038af96942b0038053 (diff) | |
download | nextcloud-server-553c2ad33abc07aff13afa75420a402875b458a4.tar.gz nextcloud-server-553c2ad33abc07aff13afa75420a402875b458a4.zip |
clean up created groups after testing, and correct parameter order
Diffstat (limited to 'tests/lib/group/backend.php')
-rw-r--r-- | tests/lib/group/backend.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/lib/group/backend.php b/tests/lib/group/backend.php index b6e3fa2b003..34442fa7bda 100644 --- a/tests/lib/group/backend.php +++ b/tests/lib/group/backend.php @@ -104,9 +104,9 @@ abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase { } public function testSearchGroups() { - $name1 = 'foobarbaz'; - $name2 = 'bazbarfoo'; - $name3 = 'notme'; + $name1 = $this->getGroupName('foobarbaz'); + $name2 = $this->getGroupName('bazbarfoo'); + $name3 = $this->getGroupName('notme'); $this->backend->createGroup($name1); $this->backend->createGroup($name2); @@ -114,9 +114,6 @@ abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase { $result = $this->backend->getGroups('bar'); $this->assertSame(2, count($result)); - - $result = $this->backend->getDisplayNames('bar'); - $this->assertSame(2, count($result)); } public function testSearchUsers() { @@ -127,9 +124,9 @@ abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase { $name2 = 'bazbarfoo'; $name3 = 'notme'; - $this->backend->addToGroup($group, $name1); - $this->backend->addToGroup($group, $name2); - $this->backend->addToGroup($group, $name3); + $this->backend->addToGroup($name1, $group); + $this->backend->addToGroup($name2, $group); + $this->backend->addToGroup($name3, $group); $result = $this->backend->usersInGroup($group, 'bar'); $this->assertSame(2, count($result)); |