[tests-only][full-ci]Added test for hide shared resources (personal and project space) in shares (#8999)
* Added test for hide shared resources in shares Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com> * review address Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com> * review address: refactor feature file Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com> --------- Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
This commit is contained in:
@@ -2010,6 +2010,39 @@ class GraphHelper {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $baseUrl
|
||||
* @param string $xRequestId
|
||||
* @param string $user
|
||||
* @param string $password
|
||||
* @param string $itemId
|
||||
* @param string $shareSpaceId
|
||||
* @param array $body
|
||||
*
|
||||
* @return ResponseInterface
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public static function hideShare(
|
||||
string $baseUrl,
|
||||
string $xRequestId,
|
||||
string $user,
|
||||
string $password,
|
||||
string $itemId,
|
||||
string $shareSpaceId,
|
||||
array $body
|
||||
):ResponseInterface {
|
||||
$url = self::getBetaFullUrl($baseUrl, "drives/$shareSpaceId/items/$itemId");
|
||||
return HttpRequestHelper::sendRequest(
|
||||
$url,
|
||||
$xRequestId,
|
||||
'PATCH',
|
||||
$user,
|
||||
$password,
|
||||
self::getRequestHeaders(),
|
||||
\json_encode($body)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $baseUrl
|
||||
* @param string $xRequestId
|
||||
|
||||
Reference in New Issue
Block a user