diff options
author | Thomas Citharel <tcit@tcit.fr> | 2020-01-05 21:27:41 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-03-22 14:24:13 +0100 |
commit | 01db6d4609036831e2d5559f65086c9a429b855b (patch) | |
tree | 503c9e523dbb05db0ceffc6195d2619b875e6d88 /apps/dav/tests | |
parent | b0fbba05f28624d5357859465073d2bbe613b3f9 (diff) | |
download | nextcloud-server-01db6d4609036831e2d5559f65086c9a429b855b.tar.gz nextcloud-server-01db6d4609036831e2d5559f65086c9a429b855b.zip |
Add extra test case to exclude by timerange
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/CalDavBackendTest.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php index 0094a28dc79..8ac4961f19f 100644 --- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php @@ -807,7 +807,7 @@ EOD; /** * @dataProvider searchDataProvider */ - public function testSearch($isShared, $count) { + public function testSearch(bool $isShared, array $searchOptions, int $count) { $calendarId = $this->createTestCalendar(); $uris = []; @@ -900,8 +900,6 @@ 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'], $searchOptions, null, null); @@ -910,8 +908,9 @@ EOD; public function searchDataProvider() { return [ - [false, 4], - [true, 2], + [false, [], 4], + [true, ['timerange' => ['start' => new DateTime('2013-09-12 13:00:00'), 'end' => new DateTime('2013-09-12 14:00:00')]], 2], + [true, ['timerange' => ['start' => new DateTime('2013-09-12 15:00:00'), 'end' => new DateTime('2013-09-12 16:00:00')]], 0], ]; } |