mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
test boolean favorite
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
1cd4d4e018
commit
fa17de290d
2 changed files with 26 additions and 0 deletions
|
|
@ -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,
|
||||
'<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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue