Remove the propfind method

This commit is contained in:
Swikriti Tripathi
2022-09-29 12:40:02 +05:45
parent f39463b2fe
commit 2957ec37aa

View File

@@ -472,31 +472,6 @@ class SpacesContext implements Context {
}
}
/**
* Send Propfind Request to Url
*
* @param string $fullUrl
* @param string $user
* @param string $password
* @param string $xRequestId
* @param array $headers
* @param mixed $body
*
* @return ResponseInterface
*
* @throws GuzzleException
*/
public function sendPropfindRequestToUrl(
string $fullUrl,
string $user,
string $password,
string $xRequestId = '',
array $headers = [],
$body = null
): ResponseInterface {
return HttpRequestHelper::sendRequest($fullUrl, $xRequestId, 'PROPFIND', $user, $password, $headers, $body);
}
/**
* Send POST Request to url
*
@@ -2270,11 +2245,7 @@ class SpacesContext implements Context {
$space = $this->getSpaceByName($user, $spaceName);
$fullUrl = $this->baseUrl . $this->davSpacesUrl . "trash-bin/" . $space["id"];
$this->featureContext->setResponse(
$this->sendPropfindRequestToUrl(
$fullUrl,
$user,
$this->featureContext->getPasswordForUser($user)
)
HttpRequestHelper::sendRequest($fullUrl, '', 'PROPFIND', $user, $this->featureContext->getPasswordForUser($user))
);
}