test: add test coverage for #9933

This commit is contained in:
Saw-jan
2024-10-02 14:51:28 +05:45
parent 4566a8de9b
commit c685229c8d
2 changed files with 36 additions and 2 deletions
+2 -1
View File
@@ -3816,7 +3816,8 @@ class SpacesContext implements Context {
// When using file-id, some characters need to be encoded
$resource = \str_replace("!", "%21", $resource);
} else {
$resource = \rawurlencode($resource);
$encodedPaths = \array_map(fn ($path) => \rawurlencode($path), \explode("/", $resource));
$resource = \join("/", $encodedPaths);
}
$this->theXMLResponseShouldContain($resource, $table->getHash());
}