Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/acceptance/features/bootstrap/BasicStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,15 @@ public function getOCSPath($ocsApiVersion) {
return \ltrim($this->getBasePath() . "/ocs/v{$ocsApiVersion}.php", "/");
}

/**
* returns the complete DAV path including the base path e.g. owncloud-core/remote.php/dav

* @return string
*/
public function getDAVPathIncludingBasePath() {
return \ltrim($this->getBasePath() . "/" . $this->getDavPath(), "/");
}

/**
* returns the base URL but without "http(s)://" in front of it
*
Expand Down Expand Up @@ -1909,6 +1918,14 @@ public function substituteInLineCodes(
],
"parameter" => []
],
[
"code" => "%dav_path%",
"function" => [
$this,
"getDAVPathIncludingBasePath"
],
"parameter" => []
],
[
"code" => "%ocs_path_v1%",
"function" => [
Expand Down