mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
tests: add test for list single permission for resources
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
This commit is contained in:
@@ -1603,6 +1603,35 @@ class GraphHelper {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $baseUrl
|
||||
* @param string $user
|
||||
* @param string $password
|
||||
* @param string $spaceId
|
||||
* @param string $itemId
|
||||
* @param string $permssionId
|
||||
*
|
||||
* @return ResponseInterface
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public static function getSinglePermissionList(
|
||||
string $baseUrl,
|
||||
string $user,
|
||||
string $password,
|
||||
string $spaceId,
|
||||
string $itemId,
|
||||
string $permssionId
|
||||
): ResponseInterface {
|
||||
$url = self::getBetaFullUrl($baseUrl, "drives/$spaceId/items/$itemId/permissions/$permssionId");
|
||||
|
||||
return HttpRequestHelper::get(
|
||||
$url,
|
||||
$user,
|
||||
$password,
|
||||
self::getRequestHeaders()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the role id by name
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user