aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV/WebcalCaching/PluginTest.php
Commit message (Collapse)AuthorAgeFilesLines
* test: Migrate CalDAV tests to PHPUnit10tests/noid/caldav-testsJoas Schilling2025-05-251-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-281-20/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(caldav): expose calendar subscriptionsDaniel Kesselberg2024-05-071-2/+49
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* perf(dav): skip non-calendar requests in webcal caching pluginDaniel Kesselberg2024-03-271-0/+58
| | | | | | | | | | | | The webcal caching plugin is active when the X-NC-CalDAV-Webcal-Caching header is there. findPrincipalByUrl sends a request for /remote.php/dav/principals/users/admin/ using the caldavService which sets the header by default.[^1] As X-NC-CalDAV-Webcal-Caching only impacts calendar requests, we can skip non-calendar requests. [^1]: https://github.com/nextcloud/calendar/blob/b3670f1805ef9ef952d6abe4e5334e37b5a14133/src/services/caldavService.js#L43 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore(dav): Add void return type to test methodsChristoph Wurst2023-01-201-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Get rid of deprecated at matcher in dav application testsCôme Chilliet2023-01-051-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add regex to match Windows 10 calendar user-agentMikael Saarinen2021-06-231-2/+2
| | | | | | | | * Match first part of the Windows 10 calendar user-agent * Exposes subscribed calendars for Windows 10 calendar * Update unit test Signed-off-by: Mikael Saarinen <mikaels@iki.fi>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-7/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* cache webcal calendars on serverGeorg Ehrke2018-11-071-0/+63
Signed-off-by: Georg Ehrke <developer@georgehrke.com>