summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * | Allow apps to provide Calendars in user's calendarHomeGeorg Ehrke2020-02-182-1/+267
| |/ | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* / Move RefreshWebcalJob logic to a proper service so that it may be calledThomas Citharel2020-02-101-0/+221
|/ | | | | | independently Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Update license headersChristoph Wurst2019-12-0537-138/+218
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* respect shareapi_allow_share_dialog_user_enumeration in Principal backend ↵Georg Ehrke2019-12-031-0/+1
| | | | | | for Sabre/DAV Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Set common-name to user's displayname if none is setGeorg Ehrke2019-11-291-5/+39
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Mode to modern phpunitRoeland Jago Douma2019-11-2727-91/+95
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* More fixesRoeland Jago Douma2019-11-271-0/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-2727-31/+31
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-2217-17/+30
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make push notifications for calendar reminders opt-inGeorg Ehrke2019-09-021-0/+32
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Make rooms / resources automatically reply to invitesGeorg Ehrke2019-08-261-0/+41
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* fix foreach error for reminder generatorGeorg Ehrke2019-08-181-0/+32
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Final fixesGeorg Ehrke2019-08-158-737/+1532
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Support event reminders (email and notifications)Thomas Citharel2019-08-157-0/+1325
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge pull request #16666 from nextcloud/feature/calendar/delegationRoeland Jago Douma2019-08-155-18/+140
|\ | | | | Feature/calendar/delegation
| * use principaluri instead of userid, allowing to add delegates for rooms and ↵Georg Ehrke2019-08-155-18/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | things Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup add owner_id and proxy_id as db index, since we use it for querying Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup don't add ACL for each individual proxy, just use calendar-proxy groups Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup allow delegation of resources / rooms Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup fix addIndex call in migration Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup fix remaining constructor calls of Principal Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup minor fixes and unit tests Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #12392 from ↵Roeland Jago Douma2019-08-151-210/+148
|\ \ | |/ |/| | | | | brad2014/feature/properly-present-buttons-from-imip-mails Customize presentation of accept/decline buttons in iMip mail
| * Move dav.invitation_link_recipients from getSystemValue to getAppValuebrad20142019-07-311-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Per @georgehrke change request for PR #12392, instead of setting dav.invitation_link_recipients in the system config.php file, we set it in the database table oc_appconfig. Furthermore, the value of the config variable is always a string: 'yes' to include links in imip mail, 'no' to exclude them, or a comma-separated list of email addresses and/or domains for which they should be included. If not specified in oc_appconfig, the default is 'yes'. Signed-off-by: brad2014 <brad2014@users.noreply.github.com>
| * IMipPlugin: DRY up - move common test set-up into setUp functionBrad Rubenstein2019-02-281-311/+117
| | | | | | | | Signed-off-by: Brad Rubenstein <brad@wbr.tech>
| * IMipPlugin: Added unit test for dav.invitation_link_recipients supportBrad Rubenstein2019-02-281-0/+132
| | | | | | | | | | | | | | | | | | Existing tests required modification to correctly mock up the new config parameter fetch, and to set the RSVP flag for attendees (since the test was detecting token generation, and we no longer generate tokens when no RSVP is requested by the client or sent by nextcloud). Signed-off-by: Brad Rubenstein <brad@wbr.tech>
* | Allow to do a principal property search based on metadata keysGeorg Ehrke2019-08-011-0/+20
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Test resource and room principal backend to check that they provide metadataGeorg Ehrke2019-08-013-766/+191
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>