-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10961 from owncloud/add-test-for-filtering-permis…
…sion-of-project-drive-resource [tests-only][full-ci]Add tests for filtering permission of project resource
- Loading branch information
Showing
3 changed files
with
357 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2111,31 +2111,6 @@ public function theJsonResponseShouldOrShouldNotContainTheFollowingShares( | |
} | ||
} | ||
|
||
/** | ||
* @When /^user "([^"]*)" gets the allowed roles for federated user of (folder|file) "([^"]*)" from the space "([^"]*)" using the Graph API$/ | ||
* | ||
* @param string $user | ||
* @param string $fileOrFolder (file|folder) | ||
* @param string $resource | ||
* @param string $space | ||
* | ||
* @return void | ||
* @throws Exception | ||
*/ | ||
public function userGetsFederatedPermissionsListForFileOfTheSpaceUsingTheGraphApi( | ||
string $user, | ||
string $fileOrFolder, | ||
string $resource, | ||
string $space | ||
): void { | ||
$query = '[email protected]' | ||
. '/rolePermissions/any(p:contains(p/condition,+\'@Subject.UserType=="Federated"\'))' | ||
. '&[email protected]'; | ||
$this->featureContext->setResponse( | ||
$this->getPermissionsList($user, $fileOrFolder, $space, $resource, $query) | ||
); | ||
} | ||
|
||
/** | ||
* @When /^user "([^"]*)" lists permissions with following filters for (folder|file) "([^"]*)" of the space "([^"]*)" using the Graph API:$/ | ||
* | ||
|
Oops, something went wrong.