[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:
@@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user