mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-01 16:30:02 -05:00
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:
@@ -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$/
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user