aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Controller
Commit message (Collapse)AuthorAgeFilesLines
* test: Migrate remaining DAV tests to PHPUnit 10Joas Schilling2025-05-284-74/+46
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(dav): Add an API for upcoming eventsChristoph Wurst2024-08-131-0/+74
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Add SPDX headerAndy Scherzinger2024-05-283-68/+6
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: close cursor after reading the invitationDaniel Kesselberg2023-08-101-1/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore(dav): Add void return type to test methodsChristoph Wurst2023-01-202-12/+12
| | | | 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>
* Remove comment and guests option from Invitations UIAnna Larch2022-12-201-12/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge branch 'master' into tests/fix-phpunit-warningsCôme Chilliet2022-12-051-3/+1
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Fix errors from PHP 8.2 testingCôme Chilliet2022-11-141-3/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix some phpunit test warningsJulius Härtl2022-11-091-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Multiple fixesCarl Schwan2022-07-311-9/+17
| | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add typing to Sharing BackendCarl Schwan2022-06-221-2/+4
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update attendence for external usersDaniel Kesselberg2021-10-081-24/+73
| | | | | | | For local users it's possible to select their calendar via the principal url and first update their own attendance status. External users have no calendar event hence the recipient is the organizer. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Introduce ISecureRandom::CHAR_ALPHANUMERICJ0WI2021-07-081-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-043-6/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Rewrite birthday calendar tests without $this->at()François Freitag2021-05-311-8/+6
| | | | | | | | | | | | Removes warnings: ``` The at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked. ``` Signed-off-by: François Freitag <mail@franek.fr>
* Fix DAV unit testsJoas Schilling2021-04-201-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAccept Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 7) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptSequence Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 8) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptRecurrenceId Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 9) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptTokenNotFound Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 10) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptExpiredToken Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 11) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testDecline Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 12) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testProcessMoreOptionsResult Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static 13) OCA\DAV\Tests\unit\CalDAV\CalendarTest::testConfidentialClassification with data set #0 (3, false) No method rule is set 14) OCA\DAV\Tests\unit\DAV\Migration\RefreshWebcalJobRegistrarTest::testRun Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move DirectMapper to QBMapperRoeland Jago Douma2021-03-031-0/+2
| | | | | | Mapper has been deprecated for some time now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-243-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-123-16/+16
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-30/+30
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-053-3/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-273-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-273-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* remove obsolete use statementsArthur Schiwon2019-04-241-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Also shorten the name of the invitation tokensJoas Schilling2018-07-121-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Include accept / decline links in CalDAV invitation emailsGeorg Ehrke2018-06-291-0/+455
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Improve the directContollerRoeland Jago Douma2018-04-261-0/+155
| | | | | | | | * Tests * No directdownload from storage yet (as it is not tested at all) * No direct links for folders Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* generate birthday calendars in a background job after admin enabled themGeorg Ehrke2017-11-111-1/+49
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Add admin checkbox to disable birthday calendarsGeorg Ehrke2017-11-091-0/+75
Signed-off-by: Georg Ehrke <developer@georgehrke.com>