Skip to content

Commit

Permalink
[tests-only] Added test for sharingNg for endpoint sharedByMe from p…
Browse files Browse the repository at this point in the history
…ersonal space (#8285)

* Added tests to list shared by me resources

Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>

* Review address

---------

Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
  • Loading branch information
SagarGi authored Feb 1, 2024
1 parent 024e02b commit 1281a73
Show file tree
Hide file tree
Showing 3 changed files with 697 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/TestHelpers/GraphHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1868,4 +1868,29 @@ public static function getSharesSharedWithMe(
self::getRequestHeaders()
);
}

/**
* @param string $baseUrl
* @param string $xRequestId
* @param string $user
* @param string $password
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function getSharesSharedByMe(
string $baseUrl,
string $xRequestId,
string $user,
string $password
): ResponseInterface {
$url = self::getBetaFullUrl($baseUrl, "me/drive/sharedByMe");
return HttpRequestHelper::get(
$url,
$xRequestId,
$user,
$password,
self::getRequestHeaders()
);
}
}
Loading

0 comments on commit 1281a73

Please sign in to comment.