Added implementation for copy operations

This commit is contained in:
sagargurung1001@gmail.com
2022-07-20 12:15:53 +05:45
parent 19e44f263b
commit db471818a2
2 changed files with 13 additions and 28 deletions
@@ -781,13 +781,14 @@ class SpacesContext implements Context {
Assert::assertIsArray($space);
Assert::assertNotEmpty($spaceId = $space["id"]);
Assert::assertNotEmpty($spaceWebDavUrl = $space["root"]["webDavUrl"]);
$headers['Depth'] = 'infinity';
$this->featureContext->setResponse(
$this->sendPropfindRequestToUrl(
$spaceWebDavUrl . '/' . $foldersPath,
$user,
$this->featureContext->getPasswordForUser($user),
"",
[],
$headers,
)
);
$this->setResponseSpaceId($spaceId);