test: fix tests and issue number

This commit is contained in:
Saw-jan
2024-08-13 12:05:44 +05:45
parent 1784577fe7
commit f5edb57d33
7 changed files with 23 additions and 47 deletions
@@ -1652,10 +1652,15 @@ trait WebDav {
$elementToRequest,
"1"
);
// TODO: make it work for folder entries
// Doesn't work for folder entries
// as the folder entry has trailing '/' in d:href
$webdavPath = "/" . $this->getFullDavFilesPath($user) . $expectedElement;
$element = $responseXmlObject->xpath(
"//d:response/d:href[text() = \"$webdavPath\"]"
);
if ($expectedToBeListed
&& (!isset($element[0]) || urldecode($element[0]->__toString()) !== urldecode($webdavPath))
) {