adding test for editing shared file(OCM) by the share receiver

This commit is contained in:
Niraj Acharya
2024-11-28 09:21:41 +05:45
parent 46d397d74f
commit 4f8fd47058
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$/
*