summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers for 19Christoph Wurst2020-04-2941-0/+43
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20632 from nextcloud/bugfix/20624Morris Jobke2020-04-271-2/+20
|\ | | | | Only catch anonymous OPTIONS for Office
| * Only catch anonymous OPTIONS for OfficeJulius Härtl2020-04-241-2/+20
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add test that shares and tags are ignored for chunk files.Daniel Kesselberg2020-04-212-1/+43
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #19901 from nextcloud/bugfix/noid/vcard-photo-handlingRoeland Jago Douma2020-04-171-12/+12
|\ | | | | Improved vcard photo handling
| * Always transform the etag and read the dataJoas Schilling2020-04-151-12/+12
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update list of multiple propertiesJohn Molakvoæ (skjnldsv)2020-04-171-2/+85
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix unit testsJoas Schilling2020-04-151-5/+50
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Verify that destination is not a directory.Daniel Kesselberg2020-04-141-4/+38
| | | | | | Otherwise file_put_contents will fail later. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* 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>
* Format code according to PSR2Christoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-1010-32/+32
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-106-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1066-193/+102
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-102-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20391 from nextcloud/refactor/spaces-cleanupChristoph Wurst2020-04-093-7/+7
|\ | | | | Remove all extra whitespace PSR2 does not like
| * Remove trailing and in between spacesChristoph Wurst2020-04-092-6/+6
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Remove spaces after method or function callChristoph Wurst2020-04-091-1/+1
| | | | | | | | 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-0934-64/+64
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-0914-12/+2
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-0916-234/+234
| | | | 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>
* Merge pull request #19890 from nextcloud/enh/comments-reference-idJoas Schilling2020-04-021-8/+13
|\ | | | | Add optional comments reference_id
| * Fix unit testsJoas Schilling2020-04-021-8/+13
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update the license headers for Nextcloud 19Christoph Wurst2020-03-3178-22/+90
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19325 from nextcloud/dependachristoph/composer/sabre-4.0Roeland Jago Douma2020-03-309-29/+32
|\ | | | | Update Sabre (and friends) to 4.0
| * RequestTestCase: Default type for headers needs to be arrayGeorg Ehrke2020-03-271-1/+1
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * Adjust FakeLockerPluginTest to new Sabre versionGeorg Ehrke2020-03-271-1/+1
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * Set custom ProdId in Birthday service, do not depend on Sabre Versio number ↵Georg Ehrke2020-03-271-8/+15
| | | | | | | | | | | | for unit tests Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * Fix usage of Sabre\HTTP\Request in unit testsGeorg Ehrke2020-03-275-18/+14
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * Sabre/DAV 4.0: beforeMethod is now beforeMethod:*Georg Ehrke2020-03-271-1/+1
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-2717-30/+0
|\ \ | |/ |/| Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-2517-30/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-2613-202/+202
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-2558-854/+854
|/ | | | 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>
* | | Fix tests due to config adjustmentsJulius Härtl2020-03-201-16/+12
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Limit enumeration in principal searchJulius Härtl2020-03-201-0/+122
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | fix testsRobin Appelman2020-03-181-57/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | 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>