add test to download preview with preview set to zero

Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
prashant-gurung899
2024-09-18 14:23:43 +05:45
parent d4ec147a57
commit 417294e520
2 changed files with 61 additions and 0 deletions
+32
View File
@@ -3691,6 +3691,38 @@ trait WebDav {
$this->setResponse($response);
}
/**
* @When user :user tries to download the preview of :path with width :width and height :height and preview set to 0 using the WebDAV API
*
* @param string $user
* @param string $path
* @param string $width
* @param string $height
*
* @return void
*/
public function userDownloadsThePreviewOfWithPreviewZero(string $user, string $path, string $width, string $height) {
$user = $this->getActualUsername($user);
$urlParameter = [
'x' => $width,
'y' => $height,
'preview' => '0'
];
$response = $this->makeDavRequest(
$user,
"GET",
$path,
[],
null,
"files",
null,
false,
null,
$urlParameter,
);
$this->setResponse($response);
}
/**
* @When user :user downloads the preview of shared resource :path with width :width and height :height using the WebDAV API
*