diff options
author | dartcafe <github@dartcafe.de> | 2020-01-05 21:07:36 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-03-22 18:40:31 +0000 |
commit | 29a6a1970975402afa966b29c7db2433a5bc999b (patch) | |
tree | 8185c19426419e99ed3db71c7714296c7f19c34b /apps/dav/tests | |
parent | 46932e06dc347e405b6ba6d3420dd1721afb5482 (diff) | |
download | nextcloud-server-29a6a1970975402afa966b29c7db2433a5bc999b.tar.gz nextcloud-server-29a6a1970975402afa966b29c7db2433a5bc999b.zip |
Added test testSearch
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'apps/dav/tests')
-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); } |