diff options
author | dartcafe <github@dartcafe.de> | 2020-01-05 21:07:36 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2020-03-26 18:41:31 +0100 |
commit | 3478ab86e49db8931acd00993e00b87a313b66f5 (patch) | |
tree | cb01800182859397560878c83bfb719b27133ea9 | |
parent | 6ce61594d6be1ba80c7f61e09c88fcfa509cbcaf (diff) | |
download | nextcloud-server-3478ab86e49db8931acd00993e00b87a313b66f5.tar.gz nextcloud-server-3478ab86e49db8931acd00993e00b87a313b66f5.zip |
Added test testSearch
Signed-off-by: dartcafe <github@dartcafe.de>
-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 1b2169b6675..31c51521885 100644 --- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php @@ -899,8 +899,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); } |