summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-01-18 11:43:52 +0100
committerJoas Schilling <coding@schilljs.com>2017-01-18 11:43:52 +0100
commitae77067a073992938a541be7ac6cc966e8e2f00c (patch)
treeb538e24e3965d114c128217f7b0f6f64a7b51be4 /apps/provisioning_api/tests
parent4bbd52b3f9aa07ebb170ed2ea4dbc67e2af79448 (diff)
downloadnextcloud-server-ae77067a073992938a541be7ac6cc966e8e2f00c.tar.gz
nextcloud-server-ae77067a073992938a541be7ac6cc966e8e2f00c.zip
No need to check the subadmin again
The user needs to be a subadmin of the group, otherwise they are not allowed to remove anyone from the group Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/provisioning_api/tests')
-rw-r--r--apps/provisioning_api/tests/Controller/UsersControllerTest.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
index e04ee86feae..761b5a5b1cc 100644
--- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
@@ -1813,11 +1813,6 @@ class UsersControllerTest extends OriginalTest {
->method('isSubAdminofGroup')
->with($loggedInUser, $targetGroup)
->will($this->returnValue(true));
- $subAdminManager
- ->expects($this->once())
- ->method('getSubAdminsGroups')
- ->with($loggedInUser)
- ->will($this->returnValue([$targetGroup]));
$this->groupManager
->expects($this->once())
->method('getSubAdmin')