summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV
Commit message (Collapse)AuthorAgeFilesLines
* Restrict autocompletion also based on the phonebook known usersJoas Schilling2021-03-111-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not send imip email to invalid recipientsChristoph Wurst2021-02-111-0/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* [CalDAV] Validate notified emailsThomas Citharel2021-01-251-64/+107
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Dismiss reminder notifications from passed eventsThomas Citharel2021-01-141-7/+76
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-163-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix notifier testRoeland Jago Douma2020-12-071-2/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #23915 from ↵Morris Jobke2020-11-111-4/+4
|\ | | | | | | | | st3iny/fix/noid/png-icons-in-caldav-reminder-emails Use png icons in caldav reminder emails
| * Use png icons in caldav reminder emailsRichard Steinmetz2020-11-071-4/+4
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | handle vcalander documents with recurrence with exemptions or editsleith abdulla2020-10-281-0/+2
|/ | | | | | | | | | | | | | | | | | when importing ics files from third party services (ex: google), long running recurrence vcalander objects can contain numerous vevents relating to past exemptions or edits. these objects are handled incorrectly, leading to incorrect first and/or last occurence dates from being inferred. as a result, a number of imported events are not rendered in the calendar. this PR makes use of EventIterator's constructor that takes in an array of VEVENTS to properly handle these complex cases. Also of note is that other parameter signatures of EventIterator's constructor, will be deprecated, according to comments in sabre dav EventIterator.php Signed-off-by: leith abdulla <online-nextcloud@eleith.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-054-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* broaden exception handling on webcal refresheleith2020-09-291-0/+156
| | | | | | | | | | | | | | | | | when iterating through a calendar, recurrance events can throw an exception if no instances of the recurrance are found. this exception is of class `Exception` but the try/catch clause in the webcal refresh loop only catches `BadRequest` exception. this leads to the exception bubbling up and thus other calendar events do not get processed by the event iterator. this PR broadens the exception to handle both BadRequest and NoInstanceFoundException so that the full webcal can be processed, even if minor hiccups are processing on vobject Signed-off-by: leith abdulla <online-nextcloud@eleith.com>
* Merge pull request #17456 from ↵John Molakvoæ2020-09-041-5/+7
|\ | | | | | | brad2014/feature/brad2014/12391-improve-imip-mail-message-take-2
| * Minor cleanup: php-cs-fixer, tests, interface consistencyBrad Rubenstein2020-09-021-5/+7
| | | | | | | | | | | | | | | | | | | | | | IMipPlugin.php Removed blank lines to make php-cs-fixer happy. Minor cleanup: bugs found by Psalm static checker IEMailTemplate: The public interface to addBodyListItem also needs to include the new plainIndent parameter. IMipPlugin: Fixes an undefined variable for events that do not have DTEND. Also use explicit string conversion for parameters and properties in several places. The new email template adds an additional blank line before "button" links in plain text, so the tests were fixed to include that additional blank line. Signed-off-by: Brad Rubenstein <brad@wbr.tech>
* | Update the license headers for Nextcloud 20Christoph Wurst2020-08-249-0/+9
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add Typed Events for CalDAV- and CardDAV-related EventsGeorg Ehrke2020-08-183-22/+29
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-1213-46/+46
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add Event and Task Backends for Unified SearchGeorg Ehrke2020-08-042-12/+295
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use assertEqualsCanonicalizing instead of deprecated assertEquals parameterMorris Jobke2020-07-231-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use the new method everywhereJoas Schilling2020-07-031-68/+45
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #19039 from nextcloud/dav-activity-provide-links-to-calendarRoeland Jago Douma2020-04-303-54/+196
|\ | | | | Provide links to calendar in event creation/update activities
| * Provide links to calendar in event creation/update activitiesThomas Citharel2020-04-263-54/+196
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Update license headers for 19Christoph Wurst2020-04-2917-0/+18
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix unit testsJoas Schilling2020-04-151-5/+50
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Provide dav setting for user's default calendarThomas Citharel2020-04-131-2/+221
| | | | | | And add tests to handle schedule-default-calendar-URL Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Add visibility to all constantsChristoph Wurst2020-04-104-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1022-64/+29
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20391 from nextcloud/refactor/spaces-cleanupChristoph Wurst2020-04-091-3/+3
|\ | | | | Remove all extra whitespace PSR2 does not like
| * Remove trailing and in between spacesChristoph Wurst2020-04-091-3/+3
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20384 from nextcloud/techdebt/lowercase-keywordsChristoph Wurst2020-04-092-2/+2
|\ \ | |/ |/| Use php keywords in lowercase
| * Use php keywords in lowercaseChristoph Wurst2020-04-092-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-0915-31/+31
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-093-56/+56
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add default titles for titleless events in invitationsThomas Citharel2020-04-031-5/+49
| | | | | | Closes #19662 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-3125-14/+30
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19325 from nextcloud/dependachristoph/composer/sabre-4.0Roeland Jago Douma2020-03-301-4/+2
|\ | | | | Update Sabre (and friends) to 4.0
| * Fix usage of Sabre\HTTP\Request in unit testsGeorg Ehrke2020-03-271-4/+2
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-278-14/+0
|\ \ | |/ |/| Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-258-14/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-262-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-2515-110/+110
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19986 from nextcloud/bugfix/19980/fix_uid_as_uriRoeland Jago Douma2020-03-251-3/+9
|\ | | | | RefreshWebcalService: randomly generate calendar-object uri
| * RefreshWebcalService: randomly generate calendar-object uriGeorg Ehrke2020-03-161-3/+9
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #18788 from nextcloud/fix/18782/translate-busy-in-caldavChristoph Wurst2020-03-241-1/+24
|\ \ | | | | | | Translate 'Busy' in CalDAV
| * | Translate 'Busy' in CalDAVGary Kim2020-02-231-1/+24
| | | | | | | | | | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* | | Add extra test case to exclude by timerangeThomas Citharel2020-03-221-5/+4
| | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | Added test testSearchdartcafe2020-03-221-1/+3
| |/ |/| | | | | Signed-off-by: dartcafe <github@dartcafe.de>
* | Merge pull request #19252 from nextcloud/bug/fix-notification-object-idJoas Schilling2020-02-251-1/+1
|\ \ | | | | | | Hash event UID to make sure it's not too long for PushProvider notifications
| * | Hash event UID to make sure it's not too long for PushProviderThomas Citharel2020-02-011-1/+1
| | | | | | | | | | | | | | | | | | notifications Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | Merge pull request #19196 from ↵Roeland Jago Douma2020-02-232-1/+267
|\ \ \ | |_|/ |/| | | | | | | | nextcloud/feature/17126/allow_apps_to_register_their_own_calendars Allow apps to provide Calendars in user's calendarHome