aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: run rectorrector-phpunit10Robin Appelman2025-07-011-10/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply new CSFixer rulesFerdinand Thiessen2025-07-011-0/+1
| | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> # Conflicts: # apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
* fix(lookup-server): disable lookup server for non-global scale setupsFerdinand Thiessen2025-03-111-6/+7
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(lookup-server): do not query data by defaultFerdinand Thiessen2025-03-111-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-3/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-061-27/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files_sharing): ShareesAPI - Return empty response when user is not ↵Ferdinand Thiessen2024-03-151-40/+74
| | | | | | | | allowed to share Resolves: https://github.com/nextcloud/server/issues/20950 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-2/+2
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make dav respect disallowing sharing with groupsThomas Citharel2021-05-261-24/+28
| | | | | | Closes #25390 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* 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-241-0/+1
| | | | 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>
* Fix testsJoas Schilling2020-06-241-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update share type constant usageJoas Schilling2020-06-241-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | 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-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused properties in ShareesAPIControllerJulius Härtl2020-03-201-6/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not use $_GETRoeland Jago Douma2020-01-051-2/+5
| | | | | | The appframework is more than capable of handling this properly. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | 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>
* Search sharees on lookup server when explicitly requested by userChristoph Wurst2019-02-261-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show sharing recommendationsChristoph Wurst2019-02-251-0/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix testsRoeland Jago Douma2018-08-241-2/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* update unit testsBjoern Schiessle2018-07-111-32/+46
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Update license headersMorris Jobke2017-11-061-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* shareeAPIController unit test clean up and last fixesArthur Schiwon2017-09-261-57/+21
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove unused methodArthur Schiwon2017-09-261-21/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move splitUserRemote unit testsArthur Schiwon2017-09-261-72/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adapt unit test for ensuring exceptionArthur Schiwon2017-09-261-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* split off former searchSharee unit testArthur Schiwon2017-09-261-176/+0
| | | | | | also moves registering default plugins to Server for proper unit testing Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust ShareeAPIController invalid-input search unit testArthur Schiwon2017-09-261-16/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust ShareeAPIController search testArthur Schiwon2017-09-261-31/+18
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* split off getEmail testsArthur Schiwon2017-09-261-244/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* split off getRemote unit testsArthur Schiwon2017-09-261-220/+0
| | | | | | adds two small fixes → they actually work \o/ Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* split off getGroups unit testsArthur Schiwon2017-09-261-392/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* split off getUsers unit testsArthur Schiwon2017-09-261-318/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add unit testJoas Schilling2017-06-141-0/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* shares-circlesMaxence Lange2017-03-171-6/+12
| | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* Add a single public api for resolving a cloud id to a user and remote and backRobin Appelman2017-02-081-4/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use group display name in sharing API + UIVincent Petry2016-12-221-1/+41
|
* Add config switchLukas Reschke2016-11-211-4/+20
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Only check the sharing backends for file/folder itemsJoas Schilling2016-11-101-11/+40
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* unit tests updated and new addedBjoern Schiessle2016-11-011-172/+136
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add ShareesAPI E-mail searchRoeland Jago Douma2016-10-241-12/+244
| | | | | | | * Allow to search for SHARE_TYPE_EMAIL (4) * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>