@@ -208,15 +208,6 @@ public function checkPropForFile($file, $prefix, $prop, $value) {
208208 Assert::assertEquals ($ value , $ property );
209209 }
210210
211- /**
212- * @Then /^Propfind for file "([^"]*)" prop "([^"]*):([^"]*)" fails with ([0-9]+) "([^"]*)"$/
213- */
214- public function checkPropForFileFails (string $ file , string $ prefix , string $ prop , int $ status , string $ message ): void {
215- $ this ->propfindFileFailed ($ this ->currentUser , $ file , "< $ prefix: $ prop/> " );
216- Assert::assertEquals ($ status , $ this ->response ['statusCode ' ]);
217- Assert::assertStringContainsString ($ message , $ this ->response ['body ' ]);
218- }
219-
220211 /**
221212 * @Then /^Image search should work$/
222213 */
@@ -413,10 +404,11 @@ public function listFolder($user, $path, $folderDepth, $properties = null) {
413404 }
414405
415406 /**
416- * Returns the elements of a propfind command
407+ * Returns the elements of a profind command
417408 * @param string $properties properties which needs to be included in the report
409+ * @param string $filterRules filter-rules to choose what needs to appear in the report
418410 */
419- public function propfindFile (string $ user , string $ path , string $ properties = '' ): array {
411+ public function propfindFile (string $ user , string $ path , string $ properties = '' ) {
420412 $ client = $ this ->getSabreClient ($ user );
421413
422414 $ body = '<?xml version="1.0" encoding="utf-8" ?>
@@ -434,26 +426,6 @@ public function propfindFile(string $user, string $path, string $properties = ''
434426 return $ parsedResponse ;
435427 }
436428
437- /**
438- * Returns the elements of a propfind command
439- * @param string $properties properties which needs to be included in the report
440- */
441- public function propfindFileFailed (string $ user , string $ path , string $ properties = '' ): void {
442- $ client = $ this ->getSabreClient ($ user );
443-
444- $ body = '<?xml version="1.0" encoding="utf-8" ?>
445- <d:propfind xmlns:d="DAV:"
446- xmlns:oc="http://owncloud.org/ns"
447- xmlns:nc="http://nextcloud.org/ns"
448- xmlns:ocs="http://open-collaboration-services.org/ns">
449- <d:prop>
450- ' . $ properties . '
451- </d:prop>
452- </d:propfind> ' ;
453-
454- $ this ->response = $ client ->request ('PROPFIND ' , $ this ->makeSabrePath ($ user , $ path ), $ body );
455- }
456-
457429 /**
458430 * Returns the elements of a search command
459431 * @param string $properties properties which needs to be included in the report
0 commit comments