summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-04 10:05:28 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-06-15 06:49:03 +0000
commita8ef2418f2f99cfe3b405fe9a076d843f4182881 (patch)
tree14e37ac1dc0ac376c544e52f9d3036c1f9035777 /apps/dav/tests/unit
parentd6923b4bb586defef6a3f4b01163671fe420da37 (diff)
downloadnextcloud-server-a8ef2418f2f99cfe3b405fe9a076d843f4182881.tar.gz
nextcloud-server-a8ef2418f2f99cfe3b405fe9a076d843f4182881.zip
Fix pagination of contacts search
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/tests/unit')
-rw-r--r--apps/dav/tests/unit/CardDAV/CardDavBackendTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
index 8bde309b5a7..27139dfd470 100644
--- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
+++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
@@ -759,6 +759,8 @@ class CardDavBackendTest extends TestCase {
['Do', ['FN'], [], [['uri0', 'John Doe'], ['uri1', 'John M. Doe']]],
'check if duplicates are handled correctly' => ['John', ['FN', 'CLOUD'], [], [['uri0', 'John Doe'], ['uri1', 'John M. Doe']]],
'case insensitive' => ['john', ['FN'], [], [['uri0', 'John Doe'], ['uri1', 'John M. Doe']]],
+ 'limit' => ['john', ['FN'], ['limit' => 1], [['uri0', 'John Doe']]],
+ 'limit and offset' => ['john', ['FN'], ['limit' => 1, 'offset' => 1], [['uri1', 'John M. Doe']]],
'find "_" escaped' => ['_', ['CLOUD'], [], [['uri2', 'find without options']]],
'find not empty ClOUD' => ['%_%', ['CLOUD'], ['escape_like_param'=>false], [['uri0', 'John Doe'], ['uri2', 'find without options']]],
];