summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/tests/Controller
Commit message (Collapse)AuthorAgeFilesLines
* adjusts tests for CloudIdManagerRobin Appelman2022-08-311-1/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Log in audit log federated shares eventsCarl Schwan2022-03-161-2/+8
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Allow to get a local cloud id without going through the contacts managerJulius Härtl2021-07-141-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-2/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Do not allow adding file drop shares to your own cloudRoeland Jago Douma2021-04-191-10/+13
| | | | | | | There is no reason for this and you can't create such shares normally anyway. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move requesthandler controller to LoggerInterfaceRoeland Jago Douma2021-03-101-3/+3
| | | | | | | | * LoggerInterface * executeUpdate * log exception when there is one (just so we ahve the trace) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* set the display name of federated sharees from addressbookArthur Schiwon2020-11-241-1/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-122-25/+25
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-14/+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-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-9/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-052-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-272-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-222-2/+1
| | | | | | | | | | | * 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>
* update testsBjoern Schiessle2018-07-021-259/+119
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix DI for federated file sharing controllerMorris Jobke2018-04-231-2/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not use \OCP\DB anymoreRoeland Jago Douma2018-03-261-11/+19
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated HTTPHelperRoeland Jago Douma2018-03-131-32/+0
| | | | | | | | * Remove the HTTP Helper * Remove from Server Containter * Removed legacy share tests that use it Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-062-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of encryption appMorris Jobke2017-10-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of dav appMorris Jobke2017-10-262-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-242-7/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use proper methods for registerBackendMorris Jobke2017-08-151-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add the column so we keep the value from before the updateJoas Schilling2017-05-181-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do proper DIRoeland Jago Douma2017-04-111-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* remove discovery manager in favour of the OCSDiscoveryServiceBjoern Schiessle2017-04-111-5/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* update unit testsBjoern Schiessle2017-04-071-2/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add a single public api for resolving a cloud id to a user and remote and backRobin Appelman2017-02-082-3/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Mock HTTPClientServiceLukas Reschke2016-09-291-2/+21
| | | | | | | | These tests were not using any kind of mocks at all! This made the test execution time took 2 minutes instead of now less than 1 second… (because multiple HTTP requests were queued and timed-out then…) See https://blackfire.io/profiles/compare/6d2611f2-ad08-47b6-973b-2b5f9c8b96d2/graph for reference Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move federated sharing routes to the federatedfilesharingappRoeland Jago Douma2016-08-281-0/+383
| | | | | | | | * Move routes to app * Move routes over to the AppFramework * Fix tests There is plenty of stuff to fix properly here. But out of scope for now.
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* don't convert link share to federated share if outgoing federated shares are ↵Bjoern Schiessle2016-07-141-11/+25
| | | | forbidden
* rename SaveToNextcloudController to MountPublicLinkControllerBjoern Schiessle2016-07-141-10/+9
|
* adjust copyright noticesBjoern Schiessle2016-07-141-0/+2
|
* move some stuff over to the federatedfilesharing appBjoern Schiessle2016-07-141-6/+24
|
* s/ownCloud/NextcloudBjoern Schiessle2016-07-141-8/+8
|
* continue to accept the URL of the remote server instead of the federated ↵Bjoern Schiessle2016-07-141-5/+11
| | | | cloud id
* add unit testsBjörn Schießle2016-07-141-0/+161