From ae77067a073992938a541be7ac6cc966e8e2f00c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 18 Jan 2017 11:43:52 +0100 Subject: 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 --- apps/provisioning_api/tests/Controller/UsersControllerTest.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'apps/provisioning_api/tests') 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') -- cgit v1.2.3