summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-19 21:51:59 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-19 23:20:33 +0200
commita53dbb8c0b6c044b17604dfdd86b9ad951381c66 (patch)
treeef2e23bf0203ab737e11fb8315981605c6cbc31b /apps/provisioning_api/tests
parent8a1cbbd90e73b44f1884b4a65fe4c55d40d377e9 (diff)
downloadnextcloud-server-a53dbb8c0b6c044b17604dfdd86b9ad951381c66.tar.gz
nextcloud-server-a53dbb8c0b6c044b17604dfdd86b9ad951381c66.zip
New user support, provisionning api and design fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/provisioning_api/tests')
-rw-r--r--apps/provisioning_api/tests/Controller/GroupsControllerTest.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
index 115c9c7ba46..2ed62a67841 100644
--- a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
@@ -107,6 +107,12 @@ class GroupsControllerTest extends \Test\TestCase {
$group
->method('countDisabled')
->willReturn(11);
+ $group
+ ->method('canAddUser')
+ ->willReturn(true);
+ $group
+ ->method('canRemoveUser')
+ ->willReturn(true);
return $group;
}
@@ -215,13 +221,18 @@ class GroupsControllerTest extends \Test\TestCase {
'id' => 'group1',
'displayname' => 'group1-name',
'usercount' => 123,
- 'disabled' => 11
+ 'disabled' => 11,
+ 'canAdd' => true,
+ 'canRemove' => true
),
Array(
'id' => 'group2',
'displayname' => 'group2-name',
'usercount' => 123,
- 'disabled' => 11
+ 'disabled' => 11,
+ 'canAdd' => true,
+ 'canRemove' => true
+
)
]], $result->getData());