aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-11-23 07:53:39 -0100
committerGitHub <noreply@github.com>2023-11-23 07:53:39 -0100
commit09879700aa5a1ff354ce1366638da56720b4aa08 (patch)
treeda1d3f63b8967d88080ec169af3d24a26b7cfacc /build
parentee787cd1c6ee5c9934aebe282b3d0a151a0570a5 (diff)
parentfa17de290de06b5c2261278a925f39bf0fbccea0 (diff)
downloadnextcloud-server-09879700aa5a1ff354ce1366638da56720b4aa08.tar.gz
nextcloud-server-09879700aa5a1ff354ce1366638da56720b4aa08.zip
Merge pull request #41668 from nextcloud/enh/noid/test-dav-favorite-search
test boolean favorite
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/WebDav.php18
-rw-r--r--build/integration/features/dav-v2.feature8
2 files changed, 26 insertions, 0 deletions
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
@@ -232,6 +232,24 @@ trait WebDav {
}
/**
+ * @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
* @param string $range
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