diff options
author | dartcafe <github@dartcafe.de> | 2020-01-05 21:07:36 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-03-22 14:24:13 +0100 |
commit | b0fbba05f28624d5357859465073d2bbe613b3f9 (patch) | |
tree | 4eb77a40256a3d7c6d8be25e5224292c23269c54 /apps/dav | |
parent | 65c591093ef34b7de1fe3f33c19a0a1482fad015 (diff) | |
download | nextcloud-server-b0fbba05f28624d5357859465073d2bbe613b3f9.tar.gz nextcloud-server-b0fbba05f28624d5357859465073d2bbe613b3f9.zip |
Added test testSearch
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/CalDavBackendTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php index 868ea2cf88b..0094a28dc79 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); } |