From 2957ec37aa02fdda8a2c7092fff42a9339c69eea Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi Date: Thu, 29 Sep 2022 12:40:02 +0545 Subject: [PATCH] Remove the propfind method --- .../features/bootstrap/SpacesContext.php | 31 +------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/tests/acceptance/features/bootstrap/SpacesContext.php b/tests/acceptance/features/bootstrap/SpacesContext.php index fc999aab84..6c5a228802 100644 --- a/tests/acceptance/features/bootstrap/SpacesContext.php +++ b/tests/acceptance/features/bootstrap/SpacesContext.php @@ -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)) ); }