]> 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)
committerThomas Citharel <tcit@tcit.fr>
Thu, 26 Mar 2020 17:45:33 +0000 (18:45 +0100)
Signed-off-by: dartcafe <github@dartcafe.de>
apps/dav/tests/unit/CalDAV/CalDavBackendTest.php

index 1b2169b6675b3ba67ff24653ab9c3117d50e450e..31c51521885be1a1b832ba3f2e098fc5fd17e8a0 100644 (file)
@@ -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);
        }