Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions build/integration/features/bootstrap/WebDav.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,24 @@ public function search(): void {
Assert::assertEquals(207, $this->response->getStatusCode());
}

/**
* @Then /^Favorite search should work$/
*/
public function searchFavorite(): void {
$this->searchFile(
$this->currentUser,
null,
null,
'<d:eq>
<d:prop>
<oc:favorite/>
</d:prop>
<d:literal>yes</d:literal>
</d:eq>'
);
Assert::assertEquals(207, $this->response->getStatusCode());
}

/**
* @Then /^Downloaded content when downloading file "([^"]*)" with range "([^"]*)" should be "([^"]*)"$/
* @param string $fileSource
Expand Down
8 changes: 8 additions & 0 deletions build/integration/features/dav-v2.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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