From b0fbba05f28624d5357859465073d2bbe613b3f9 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sun, 5 Jan 2020 21:07:36 +0100 Subject: [PATCH] Added test testSearch Signed-off-by: dartcafe --- apps/dav/tests/unit/CalDAV/CalDavBackendTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php index 868ea2cf88..0094a28dc7 100644 --- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php @@ -900,8 +900,10 @@ EOD; '{http://owncloud.org/ns}owner-principal' => $isShared ? 'user2' : 'user1', ]; + $searchOptions = ['timerange' => ['start' => new DateTime('2013-09-12 13:00:00'), 'end' => new DateTime('2013-09-12 14:00:00')]]; + $result = $this->backend->search($calendarInfo, 'Test', - ['SUMMARY', 'LOCATION', 'ATTENDEE'], [], null, null); + ['SUMMARY', 'LOCATION', 'ATTENDEE'], $searchOptions, null, null); $this->assertCount($count, $result); }