Added PROPFIND tests as sharee with new davpath

This commit is contained in:
Prarup Gurung
2024-03-19 15:06:25 +05:45
parent 6927fe1afd
commit b36043488c
3 changed files with 47 additions and 4 deletions
@@ -3617,11 +3617,12 @@ class SpacesContext implements Context {
/**
* @When /^user "([^"]*)" sends PROPFIND request from the space "([^"]*)" to the resource "([^"]*)" with depth "([^"]*)" using the WebDAV API$/
* @When user :user sends PROPFIND request from the space :spaceName to the resource :resource using the WebDAV API
*
* @param string $user
* @param string $spaceName
* @param string $resource
* @param string $folderDepth
* @param string|null $folderDepth
*
* @return void
*
@@ -3629,7 +3630,7 @@ class SpacesContext implements Context {
*
* @throws GuzzleException
*/
public function userSendsPropfindRequestFromTheSpaceToTheResourceWithDepthUsingTheWebdavApi(string $user, string $spaceName, string $resource, string $folderDepth): void {
public function userSendsPropfindRequestFromTheSpaceToTheResourceWithDepthUsingTheWebdavApi(string $user, string $spaceName, string $resource, ?string $folderDepth = "1"): void {
$this->featureContext->setResponse(
$this->sendPropfindRequestToSpace($user, $spaceName, $resource, null, $folderDepth)
);
@@ -3705,7 +3706,7 @@ class SpacesContext implements Context {
$this->featureContext->getStepLineRef(),
$folderDepth,
"files",
WebDavHelper::DAV_VERSION_SPACES,
$this->featureContext->getDavPathVersion(),
null,
$headers
);