summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/DAV
Commit message (Collapse)AuthorAgeFilesLines
* Delete calendar subscriptions as well when deleting userThomas Citharel2021-08-131-22/+27
| | | | | | Closes #28418 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Make default calendar only contain VEVENTSThomas Citharel2021-06-251-2/+4
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Always provide theme color for default personal calendarThomas Citharel2021-06-251-6/+36
| | | | | | Before this calendar-color wasn't defined for default calendar Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-11/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make dav respect disallowing sharing with groupsThomas Citharel2021-05-261-24/+49
| | | | | | Closes #25390 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* dav search to honour sharing.maxAutocompleteResults settingArthur Schiwon2020-12-151-1/+24
| | | | | | | - it is being used on frontend by users - user and big instances benefit from quicker results and less load Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix "Invalid fetch style: 12" on OracleJoas Schilling2020-11-101-2/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-243-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add ability to limit sharing to ownerGeorg Ehrke2020-08-181-1/+3
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-125-30/+29
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-293-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Only catch anonymous OPTIONS for OfficeJulius Härtl2020-04-241-2/+20
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-6/+0
| | | | | | | | | | | | | | | 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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-092-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-316-2/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19325 from nextcloud/dependachristoph/composer/sabre-4.0Roeland Jago Douma2020-03-301-3/+2
|\ | | | | Update Sabre (and friends) to 4.0
| * Fix usage of Sabre\HTTP\Request in unit testsGeorg Ehrke2020-03-271-3/+2
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-3/+0
|\ \ | |/ |/| Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-3/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-253-29/+29
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* remove the detour trough node and work with path directlyRobin Appelman2020-03-181-39/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use INode instead of Node for custom propertiesRobin Appelman2020-03-181-1/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* handle long property paths to hasing paths >250 charsRobin Appelman2020-03-181-11/+41
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test custom properties backend against real databaseRobin Appelman2020-03-181-52/+87
| | | | | | test behaviour not implementation Signed-off-by: Robin Appelman <robin@icewind.nl>
* merge the two almost identical custom property backendsRobin Appelman2020-03-181-4/+32
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Check for empty authorization headers for office requests and allow ↵Julius Härtl2020-02-041-2/+15
| | | | | | anonymous option on the whole tree Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersChristoph Wurst2019-12-057-9/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-275-12/+14
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-274-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-223-2/+3
| | | | | | | | | | | * 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>
* Add event dispatcher to OCPChristoph Wurst2019-06-251-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* check anonymous OPTIONS requests file in root (not in subdir)Bastien Durel2019-01-041-0/+6
| | | | Signed-off-by: Bastien Durel <bastien@durel.org>
* extend anonymous options to work on every dav urlRobin Appelman2018-11-231-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix displayName return of dav groups requestJohn Molakvoæ (skjnldsv)2018-11-101-38/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* allow group principal search for dav displayname propertyGeorg Ehrke2018-10-221-9/+180
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add tests for handling anonymous authRobin Appelman2018-06-011-0/+71
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-066-1/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of dav appMorris Jobke2017-10-263-5/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused use statementsMorris Jobke2017-04-221-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* OCA\DAV\Files\CustomPropertiesBackend -> OCA\DAV\DAV\CustomPropertiesBackendGeorg Ehrke2017-03-271-0/+170
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Properly handle groups with a /Roeland Jago Douma2017-02-271-7/+22
| | | | | | | | | | | | If a group contains a slash the principal URI becomes principals/groups/foo/bar. Now the URI is plit on '/' so this creates issues ;) Fixes #2957 * Add tests for groups with / Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Test fixJohn Molakvoæ (skjnldsv)2017-02-141-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>