aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: run rectorrector-phpunit10Robin Appelman2025-07-011-3/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test: Migrate remaining DAV tests to PHPUnit 10Joas Schilling2025-05-281-146/+75
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(dav): check the owner displayName scope before giving attributeskjnldsv2025-04-301-0/+3
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-3/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(dav): Pre-check if node can be copied or moved in DAV files pluginFerdinand Thiessen2024-08-281-40/+21
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-281-23/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-6/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(dav): fix report testsJohn Molakvoæ (skjnldsv)2023-09-181-3/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix: cominbation of small fixesArthur Schiwon2023-06-211-3/+20
| | | | | | | | - possible null return - parameter name mismatch in implementation - incomplete unit test Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: include invisible tags for adminsArthur Schiwon2023-06-211-45/+59
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: search with more than one search tagsArthur Schiwon2023-06-211-108/+302
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Type sizes as int|float throughout the code baseCôme Chilliet2023-02-071-0/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(dav): Add void return type to test methodsChristoph Wurst2023-01-201-16/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Get rid of deprecated at matcher in dav application testsCôme Chilliet2023-01-051-43/+55
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix dav application tests and code for PHP 8.1Côme Chilliet2021-11-231-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Make sure that the dav propfind plugins always use the proper user idJulius Härtl2021-07-221-4/+3
| | | | | | | | For old android versions it could happen that the requests are performed with a login name instead of the actual user id, so before this change the property methods used the wrong value for fetching their information Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-13/+13
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* 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-60/+60
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-6/+6
| | | | | | | | | | | * 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>
* Use dependency injection for app managerMorris Jobke2019-03-131-1/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of dav appMorris Jobke2017-10-261-6/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-23/+31
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly handle missing READ permissionVincent Petry2017-04-271-0/+6
|
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused $view from FilesPlugin (#26549)Vincent Petry2016-11-141-1/+0
| | | | The Sabre FilesPlugin never uses the view so remove it.
* Add more files plugins to new DAV endpoint (#26186)Vincent Petry2016-10-201-11/+35
| | | | | | | | | | | * Add more files plugins to new DAV endpoint Also fix report plugin to properly retrieve the path from the prolongated URL * In case the report is not for this plugin -> simply return to allow other plugins to get executed * Adjust onReport tests to match new behavior
* Make it possible to filter by tags with REPORT methodVincent Petry2016-10-191-10/+29
| | | | | | | | | | | Enhanced the REPORT method on the Webdav endpoint and added a "oc:favorite" filter rule. When set, it will return a flat list of results filtered with only favorite files. The web UI was also adjusted to use this REPORT method instead of the private API endpoint. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add dav property to check if a file has a preview availableRobin Appelman2016-07-271-1/+10
|
* Fix apps/Joas Schilling2016-07-211-3/+4
|
* Fix PHPUnit 5.4 warnings in DAV appRoeland Jago Douma2016-07-151-14/+46
| | | | * getMock is deprecated
* DAV now returns file name with Content-Disposition headerVincent Petry2016-06-091-1/+2
| | | | | Fixes issue where Chrome would append ".txt" to XML files when downloaded in the web UI
* Update license headersLukas Reschke2016-05-261-0/+1
|
* Update DAV unit tests to PSR-4Joas Schilling2016-05-251-0/+611