Skip to content

Commit 72f4fa9

Browse files
add tests for filter permission
1 parent 6c95f19 commit 72f4fa9

File tree

2 files changed

+692
-0
lines changed

2 files changed

+692
-0
lines changed

tests/acceptance/bootstrap/SharingNgContext.php

+26
Original file line numberDiff line numberDiff line change
@@ -2119,4 +2119,30 @@ public function userGetsFederatedPermissionsListForFileOfTheSpaceUsingTheGraphAp
21192119
$this->getPermissionsList($user, $fileOrFolder, $space, $resource, $query)
21202120
);
21212121
}
2122+
2123+
/**
2124+
* @When /^user "([^"]*)" lists permissions with following filters for (folder|file) "([^"]*)" of the space "([^"]*)" using the Graph API:$/
2125+
*
2126+
* @param string $user
2127+
* @param string $fileOrFolder (file|folder)
2128+
* @param string $resource
2129+
* @param string $space
2130+
* @param TableNode $table
2131+
*
2132+
* @return void
2133+
* @throws GuzzleException
2134+
*/
2135+
public function userListsPermissionsWithFollowingFiltersForFileOrFolderOfTheSpaceUsingTheGraphApi(
2136+
string $user,
2137+
string $fileOrFolder,
2138+
string $resource,
2139+
string $space,
2140+
TableNode $table
2141+
): void {
2142+
$query = implode('&', $table->getColumn(0));
2143+
2144+
$this->featureContext->setResponse(
2145+
$this->getPermissionsList($user, $fileOrFolder, $space, $resource, $query)
2146+
);
2147+
}
21222148
}

0 commit comments

Comments
 (0)