Skip to content

Commit

Permalink
add tests for lists permission with query
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Jan 6, 2025
1 parent 0c9a5b4 commit 0aa819b
Show file tree
Hide file tree
Showing 2 changed files with 693 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/acceptance/bootstrap/SharingNgContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2119,4 +2119,31 @@ public function userGetsFederatedPermissionsListForFileOfTheSpaceUsingTheGraphAp
$this->getPermissionsList($user, $fileOrFolder, $space, $resource, $query)
);
}

/**
* @When /^user "([^"]*)" lists permissions for (folder|file) "([^"]*)" of the space "([^"]*)" using the Graph API with query:$/
*
* @param string $user
* @param string $fileOrFolder (file|folder)
* @param string $resource
* @param string $space
* @param TableNode $table
*
* @return void
* @throws GuzzleException
*/
public function userListsPermissionsForFolderOfTheSpaceUsingTheGraphApiWithQuery(
string $user,
string $fileOrFolder,
string $resource,
string $space,
TableNode $table
): void {
$query = implode('&', $table->getColumn(0));

$this->featureContext->setResponse(
$this->getPermissionsList($user, $fileOrFolder, $space, $resource, $query)
);
}

}
Loading

0 comments on commit 0aa819b

Please sign in to comment.