diff --git a/tests/TestHelpers/GraphHelper.php b/tests/TestHelpers/GraphHelper.php index 192a36d7e2b..64ca26fc6fc 100644 --- a/tests/TestHelpers/GraphHelper.php +++ b/tests/TestHelpers/GraphHelper.php @@ -1579,6 +1579,7 @@ public static function getRoleIdByName( * @param string $spaceId * @param string $itemId * @param string $shareeId + * @param string $shareType * @param string|null $role * * @return ResponseInterface @@ -1592,12 +1593,15 @@ public static function sendSharingInvitation( string $spaceId, string $itemId, string $shareeId, + string $shareType, ?string $role ): ResponseInterface { $url = self::getBetaFullUrl($baseUrl, "drives/$spaceId/items/$itemId/invite"); $body = []; $recipients['objectId'] = $shareeId; + $recipients['@libre.graph.recipient.type'] = $shareType; + $body['recipients'] = [$recipients]; if ($role !== null) { diff --git a/tests/acceptance/features/bootstrap/SharingNgContext.php b/tests/acceptance/features/bootstrap/SharingNgContext.php index 8ab05cfb87d..eb92be9a448 100644 --- a/tests/acceptance/features/bootstrap/SharingNgContext.php +++ b/tests/acceptance/features/bootstrap/SharingNgContext.php @@ -112,6 +112,7 @@ public function userSendsTheFollowingShareInvitationUsingTheGraphApi(string $use $spaceId, $itemId, $shareeId, + $rows['shareType'], $rows['role'] ) );