Added test for sending share invitation to user with permissions

This commit is contained in:
Prarup Gurung
2023-12-28 08:21:00 +05:45
parent 18c52d5352
commit e7cf24e486
3 changed files with 206 additions and 2 deletions
@@ -104,6 +104,9 @@ class SharingNgContext implements Context {
? $this->featureContext->getAttributeOfCreatedUser($rows['sharee'], 'id')
: $this->featureContext->getAttributeOfCreatedGroup($rows['sharee'], 'id');
$role = $rows['role'] ?? null;
$permission = $rows['permission'] ?? null;
$this->featureContext->setResponse(
GraphHelper::sendSharingInvitation(
$this->featureContext->getBaseUrl(),
@@ -114,7 +117,8 @@ class SharingNgContext implements Context {
$itemId,
$shareeId,
$rows['shareType'],
$rows['role']
$role,
$permission
)
);
}