summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add Typed Events for CalDAV- and CardDAV-related EventsGeorg Ehrke2020-08-184-35/+47
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add ability to limit sharing to ownerGeorg Ehrke2020-08-182-2/+6
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Merge pull request #22128 from nextcloud/bugfix/noid/cleanup-chunks-on-failureMorris Jobke2020-08-131-3/+7
|\ | | | | Delete chunks if the move on an upload failed
| * Return proper status when file didn't exist beforeJulius Härtl2020-08-131-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Adjust chunking test for non-existing target nodeJulius Härtl2020-08-121-3/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-1265-301/+297
|/ | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix search providers order and IDsJohn Molakvoæ (skjnldsv)2020-08-053-3/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #22099 from nextcloud/fix/unified-searchJohn Molakvoæ2020-08-053-19/+19
|\
| * Show mime icon, bump bundles, make the SearchResultEntry class ↵John Molakvoæ (skjnldsv)2020-08-043-19/+19
| | | | | | | | | | | | non-abstract, Fix header search icon, various fixes Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | IAddressBook: add isShared and isSystemAddressBookGeorg Ehrke2020-08-051-0/+59
|/ | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add Event and Task Backends for Unified SearchGeorg Ehrke2020-08-045-13/+1113
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Implement Contacts Backend for Unified SearchGeorg Ehrke2020-08-031-0/+275
| | | | 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 assertStringContainsString instead of assertContains on stringsMorris Jobke2020-07-232-9/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update system addressbook card only when there was a change based on a ↵Morris Jobke2020-07-091-4/+4
| | | | | | | | cached etag Due to our old and new hook system the card dav backend listens to old and new hooks. This triggers this code multiple times and always causes an update. With this change we cache the etag during a request and only trigger the update if the etag has changed. This does not catches all not needed updates, but it does not need another round trip to the database and still covers most cases where multiple attributes are updated during one single request. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #21704 from nextcloud/fix/18895/fix-unit-testsMorris Jobke2020-07-061-1/+1
|\ | | | | Fix unit tests from #18895
| * Fix unit tests from #18895Morris Jobke2020-07-061-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #21222 from ↵Morris Jobke2020-07-061-1/+1
|\ \ | |/ |/| | | | | nextcloud/bugfix/18965/reduce-contacts-search-load Reduce contacts search load
| * Reduce load of the contacts search when we know it can't matchJoas Schilling2020-06-151-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use the new method everywhereJoas Schilling2020-07-031-68/+45
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix testsJoas Schilling2020-06-241-3/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update share type constant usageJoas Schilling2020-06-242-16/+16
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix pagination of contacts searchJoas Schilling2020-06-101-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #21302 from ↵Christoph Wurst2020-06-091-3/+3
|\ | | | | | | | | nextcloud/techdebt/noid/adjust-to-parent-implementation Adjust to parent implementation
| * Adjust to parent implementationJoas Schilling2020-06-081-3/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Allow for compression of the PROPFIND responsesRoeland Jago Douma2020-06-061-0/+116
|/ | | | | | | For now it just gzip and only for propfind (the 99% case). Already saves a bunch since the propfinds compress so nicely. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Translate the maintenance mode message in webdavMorris Jobke2020-05-062-3/+12
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #19436 from nextcloud/bugfix/noid/dav-quota-calculationRoeland Jago Douma2020-04-301-10/+18
|\ | | | | Do not include mountpoints when calculating quota usage on WebDAV
| * Do not include mountpoints when calculating quota usage on WebDAVJulius Härtl2020-04-241-10/+18
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | 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-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