[tests-only] add file/folder creation and list sharedByMe of link shares (#9150)
* test: add more edge-case tests for file/folder creation * test: add list sharedByMe tests for link shares * test: fix tests * test: list sharedByMe of drive link share * test: add issue tag * test: split scenario
This commit is contained in:
@@ -837,6 +837,26 @@ class SharingNgContext implements Context {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When /^user "([^"]*)" has removed the last link share of (?:file|folder) "([^"]*)" from space "([^"]*)"$/
|
||||
*
|
||||
* @param string $sharer
|
||||
* @param string $resource
|
||||
* @param string $space
|
||||
*
|
||||
* @return void
|
||||
* @throws JsonException
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function userHasRemovedTheLastLinkShareOfFileOrFolderFromSpace(
|
||||
string $sharer,
|
||||
string $resource,
|
||||
string $space
|
||||
): void {
|
||||
$response = $this->removeAccessToSpaceItem($sharer, 'link', $space, $resource);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(204, "", $response);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When /^user "([^"]*)" removes the link of (?:file|folder) "([^"]*)" from space "([^"]*)" using the Graph API$/
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user