public function testRemovePermissions() { $integrationId = 22; $roleName = UserContextInterface::USER_TYPE_INTEGRATION . $integrationId; $this->roleMock->expects($this->once())->method('load')->with($roleName)->will($this->returnSelf()); $this->integrationAuthorizationService->removePermissions($integrationId); }