mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-30 21:32:11 -04:00
refactoring test code
This commit is contained in:
@@ -921,7 +921,7 @@ class WebDavHelper {
|
||||
['d:getlastmodified'],
|
||||
$xRequestId,
|
||||
'1',
|
||||
'',
|
||||
null,
|
||||
null,
|
||||
$davVersionToUse
|
||||
);
|
||||
|
||||
@@ -90,7 +90,7 @@ class FilesVersionsContext implements Context {
|
||||
$endpoint,
|
||||
null,
|
||||
null,
|
||||
'',
|
||||
null,
|
||||
"versions",
|
||||
(string)$this->featureContext->getDavPathVersion(),
|
||||
false,
|
||||
@@ -148,7 +148,7 @@ class FilesVersionsContext implements Context {
|
||||
$endpoint,
|
||||
null,
|
||||
null,
|
||||
'',
|
||||
null,
|
||||
"versions",
|
||||
(string)$this->featureContext->getDavPathVersion()
|
||||
)
|
||||
@@ -192,7 +192,7 @@ class FilesVersionsContext implements Context {
|
||||
$this->getVersionsPathForFileId($fileId),
|
||||
null,
|
||||
$body,
|
||||
'',
|
||||
null,
|
||||
null,
|
||||
'2'
|
||||
);
|
||||
@@ -551,7 +551,7 @@ class FilesVersionsContext implements Context {
|
||||
$properties,
|
||||
$this->featureContext->getStepLineRef(),
|
||||
(string) $folderDepth,
|
||||
'',
|
||||
null,
|
||||
"versions"
|
||||
);
|
||||
return $response;
|
||||
|
||||
@@ -868,7 +868,7 @@ class TrashbinContext implements Context {
|
||||
$trashItemHRef,
|
||||
[],
|
||||
null,
|
||||
'',
|
||||
null,
|
||||
'trash-bin'
|
||||
);
|
||||
$this->featureContext->setResponse($response);
|
||||
|
||||
@@ -3245,7 +3245,7 @@ trait WebDav {
|
||||
$destination,
|
||||
[],
|
||||
null,
|
||||
'',
|
||||
null,
|
||||
"uploads",
|
||||
null,
|
||||
false,
|
||||
@@ -3280,7 +3280,7 @@ trait WebDav {
|
||||
$destination,
|
||||
[],
|
||||
$data,
|
||||
'',
|
||||
null,
|
||||
"uploads",
|
||||
null,
|
||||
false,
|
||||
@@ -3446,7 +3446,7 @@ trait WebDav {
|
||||
$source,
|
||||
$headers,
|
||||
null,
|
||||
'',
|
||||
null,
|
||||
"uploads",
|
||||
null,
|
||||
false,
|
||||
@@ -3474,7 +3474,7 @@ trait WebDav {
|
||||
$source,
|
||||
$headers,
|
||||
null,
|
||||
'',
|
||||
null,
|
||||
"uploads"
|
||||
);
|
||||
}
|
||||
@@ -3873,7 +3873,7 @@ trait WebDav {
|
||||
if ($this->getDavPathVersion() === 3) {
|
||||
$this->setResponse($this->uploadToSharedFolder($user, $destination, $content));
|
||||
} else {
|
||||
$this->setResponse($this->uploadFileWithContent($user, $content, $destination, ''));
|
||||
$this->setResponse($this->uploadFileWithContent($user, $content, $destination, null));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -245,6 +245,7 @@ class WebDavPropertiesContext implements Context {
|
||||
$properties,
|
||||
$this->featureContext->getStepLineRef(),
|
||||
"0",
|
||||
null,
|
||||
"files",
|
||||
$this->featureContext->getDavPathVersion()
|
||||
);
|
||||
@@ -269,7 +270,7 @@ class WebDavPropertiesContext implements Context {
|
||||
$path,
|
||||
'0',
|
||||
$properties,
|
||||
'',
|
||||
null,
|
||||
$this->featureContext->getDavPathVersion() === 1 ? "public-files" : "public-files-new"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user