diff --git a/tests/acceptance/features/bootstrap/BasicStructure.php b/tests/acceptance/features/bootstrap/BasicStructure.php index 031e891fc4f4..fe34ab72d098 100644 --- a/tests/acceptance/features/bootstrap/BasicStructure.php +++ b/tests/acceptance/features/bootstrap/BasicStructure.php @@ -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 * @@ -1909,6 +1918,14 @@ public function substituteInLineCodes( ], "parameter" => [] ], + [ + "code" => "%dav_path%", + "function" => [ + $this, + "getDAVPathIncludingBasePath" + ], + "parameter" => [] + ], [ "code" => "%ocs_path_v1%", "function" => [