File tree Expand file tree Collapse file tree
build/integration/features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -231,6 +231,24 @@ public function search(): void {
231231 Assert::assertEquals (207 , $ this ->response ->getStatusCode ());
232232 }
233233
234+ /**
235+ * @Then /^Favorite search should work$/
236+ */
237+ public function searchFavorite (): void {
238+ $ this ->searchFile (
239+ $ this ->currentUser ,
240+ null ,
241+ null ,
242+ '<d:eq>
243+ <d:prop>
244+ <oc:favorite/>
245+ </d:prop>
246+ <d:literal>yes</d:literal>
247+ </d:eq> '
248+ );
249+ Assert::assertEquals (207 , $ this ->response ->getStatusCode ());
250+ }
251+
234252 /**
235253 * @Then /^Downloaded content when downloading file "([^"]*)" with range "([^"]*)" should be "([^"]*)"$/
236254 * @param string $fileSource
Original file line number Diff line number Diff line change @@ -86,3 +86,11 @@ Feature: dav-v2
8686 And As an "admin"
8787 When User "user0" uploads file "data/green-square-256.png" to "/image.png"
8888 When Image search should work
89+
90+ Scenario : Create a search query on favorite
91+ Given using new dav path
92+ And As an "admin"
93+ And user "user0" exists
94+ When User "user0" uploads file "data/green-square-256.png" to "/fav_image.png"
95+ When user "user0" favorites element "/fav_image.png"
96+ When Favorite search should work
You can’t perform that action at this time.
0 commit comments