From fa17de290de06b5c2261278a925f39bf0fbccea0 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Wed, 22 Nov 2023 13:16:56 -0100 Subject: [PATCH] test boolean favorite Signed-off-by: Maxence Lange --- .../integration/features/bootstrap/WebDav.php | 18 ++++++++++++++++++ build/integration/features/dav-v2.feature | 8 ++++++++ 2 files changed, 26 insertions(+) diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php index 9c81a5817b4..4212f56ce2b 100644 --- a/build/integration/features/bootstrap/WebDav.php +++ b/build/integration/features/bootstrap/WebDav.php @@ -231,6 +231,24 @@ trait WebDav { Assert::assertEquals(207, $this->response->getStatusCode()); } + /** + * @Then /^Favorite search should work$/ + */ + public function searchFavorite(): void { + $this->searchFile( + $this->currentUser, + null, + null, + ' + + + + yes + ' + ); + Assert::assertEquals(207, $this->response->getStatusCode()); + } + /** * @Then /^Downloaded content when downloading file "([^"]*)" with range "([^"]*)" should be "([^"]*)"$/ * @param string $fileSource diff --git a/build/integration/features/dav-v2.feature b/build/integration/features/dav-v2.feature index 4dd79ec7b9e..235ae533913 100644 --- a/build/integration/features/dav-v2.feature +++ b/build/integration/features/dav-v2.feature @@ -86,3 +86,11 @@ Feature: dav-v2 And As an "admin" When User "user0" uploads file "data/green-square-256.png" to "/image.png" When Image search should work + + Scenario: Create a search query on favorite + Given using new dav path + And As an "admin" + And user "user0" exists + When User "user0" uploads file "data/green-square-256.png" to "/fav_image.png" + When user "user0" favorites element "/fav_image.png" + When Favorite search should work -- 2.39.5