mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-24 04:58:31 -05:00
add test to download preview with preview set to zero
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user