Skip to content

Commit

Permalink
Address reviews
Browse files Browse the repository at this point in the history
Signed-off-by: Swikriti Tripathi <[email protected]>
  • Loading branch information
SwikritiT committed Jan 11, 2024
1 parent 88fa41d commit e07a65a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/acceptance/features/bootstrap/SharingNgContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,10 @@ public function removeSharePermissionOfAResource(
$itemId = ($resourceType === 'folder')
? $this->spacesContext->getResourceId($sharer, $space, $resource)
: $this->spacesContext->getFileId($sharer, $space, $resource);
$permId = null;
if ($shareType === 'link') {
$permId = $this->featureContext->shareNgGetLastCreatedLinkShareID();
} else {
$permId = $this->featureContext->shareNgGetLastCreatedUserGroupShareID();
}

$permId = ($shareType === 'link')
? $this->featureContext->shareNgGetLastCreatedLinkShareID()
: $this->featureContext->shareNgGetLastCreatedUserGroupShareID();
return
GraphHelper::deleteSharePermission(
$this->featureContext->getBaseUrl(),
Expand Down

0 comments on commit e07a65a

Please sign in to comment.