test: make remote.php configurable
test: build dav paths test: fix paths test: merge method args test: add issue tags test: add new expected failure file test: merge expected-failure files before running tests
This commit is contained in:
@@ -103,16 +103,15 @@ class SearchContext implements Context {
|
||||
$body .= " </a:prop>";
|
||||
}
|
||||
$body .= " </oc:search-files>";
|
||||
|
||||
$davPathVersionToUse = $this->featureContext->getDavPathVersion();
|
||||
$davPath = WebDavHelper::getDavPath($doDavRequestAsUser ?? $user, $davPathVersionToUse, 'files', null);
|
||||
|
||||
if ($davPathVersionToUse == WebDavHelper::DAV_VERSION_NEW) {
|
||||
// Removes the last component('username' in this case) from the WebDAV path by going up one level in the directory structure.
|
||||
// e.g. remote.php/dav/files/Alice ==> remote.php/dav/files/
|
||||
$davPath = \dirname($davPath, 1);
|
||||
}
|
||||
|
||||
// $davPath will be one of the followings:
|
||||
// - webdav
|
||||
// - dav/files
|
||||
// - dav/spaces
|
||||
$davPath = WebDavHelper::getDavPath($davPathVersionToUse);
|
||||
$fullUrl = WebDavHelper::sanitizeUrl("$baseUrl/$davPath");
|
||||
|
||||
return HttpRequestHelper::sendRequest(
|
||||
$fullUrl,
|
||||
$this->featureContext->getStepLineRef(),
|
||||
|
||||
Reference in New Issue
Block a user