Merge pull request #10523 from owncloud/ocm-test-shared-file

[tests-only][full-ci] adding test for editing shared file(OCM) by the share receiver
This commit is contained in:
Sawjan Gurung
2024-11-28 14:18:36 +05:45
committed by GitHub
2 changed files with 50 additions and 0 deletions
@@ -1345,6 +1345,33 @@ class SpacesContext implements Context {
$this->featureContext->setResponse($response);
}
/**
* @When user :user updates the content of federated share :share with :content using the WebDAV API
*
* @param string $user
* @param string $share
* @param string $content
*
* @return void
* @throws GuzzleException
* @throws Exception
*/
public function userUpdatesTheContentOfFederatedShareWithUsingTheWebdavApi(
string $user,
string $share,
string $content,
): void {
$spaceId = $this->getSharesRemoteItemId($user, $share);
$this->featureContext->setResponse(
$this->featureContext->uploadFileWithContent(
$user,
$content,
'',
$spaceId
)
);
}
/**
* @When /^user "([^"]*)" uploads a file "([^"]*)" to "([^"]*)" in space "([^"]*)" using the WebDAV API$/
*