summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-04-21 21:10:04 -0400
committerFrederic Guillot <fred@kanboard.net>2016-04-21 21:10:04 -0400
commit60e0753b90838120510861ebc674f826140b31de (patch)
treef85b81e439adad8b3011c3127442c822740b02d0 /tests/integration
parentb0e41bc81b40cfdc5e067bf1eb4d05e3aa438c7d (diff)
Added API procedure "getMemberGroups"
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/GroupMemberTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/integration/GroupMemberTest.php b/tests/integration/GroupMemberTest.php
index e84c0734..d49945b5 100644
--- a/tests/integration/GroupMemberTest.php
+++ b/tests/integration/GroupMemberTest.php
@@ -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();