Added API procedure "getMemberGroups"

This commit is contained in:
Frederic Guillot
2016-04-21 21:10:04 -04:00
parent b0e41bc81b
commit 60e0753b90
6 changed files with 97 additions and 0 deletions

View File

@@ -30,6 +30,14 @@ class GroupMemberTest extends Base
$this->assertFalse($this->app->isGroupMember($groupId, 2));
}
public function testGetGroups()
{
$groups = $this->app->getMemberGroups(1);
$this->assertCount(1, $groups);
$this->assertEquals(1, $groups[0]['id']);
$this->assertEquals('My Group A', $groups[0]['name']);
}
public function testRemove()
{
$groupId = $this->getGroupId();