[full-ci] [tests-only] Backport PR 8046, 8047 (#8078)

* Added test for sending share invitation to user with permissions

* Added test for sending share invitation to group with permissions
This commit is contained in:
Prarup Gurung
2023-12-28 12:12:28 +05:45
committed by GitHub
parent bf40d9d7dd
commit a3f481f3a0
3 changed files with 408 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
)
);
}