]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added test testSearch
authordartcafe <github@dartcafe.de>
Sun, 5 Jan 2020 20:07:36 +0000 (21:07 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 22 Mar 2020 13:24:13 +0000 (14:24 +0100)
Signed-off-by: dartcafe <github@dartcafe.de>
apps/dav/tests/unit/CalDAV/CalDavBackendTest.php

index 868ea2cf88b2ce1f307b0da9f6a0035ddbd81f20..0094a28dc797f010ad7c55ceb545b7266f2a8721 100644 (file)
@@ -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);
        }