summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/External/ManagerTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove at() matcher in files_sharing testsCôme Chilliet2022-05-241-8/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* simplify setup of circular SetupManager<->ManagerRobin Appelman2022-03-041-6/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move logic to decide what to setup to setupmanagerRobin Appelman2022-03-041-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust tests to new fs setupRobin Appelman2022-03-041-7/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update testsRobin Appelman2021-10-191-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix remote share deletion when deleting userVincent Petry2021-07-271-28/+147
| | | | | | | When deleting a user, we should only delete the direct remote user shares or the remote group based subshares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Replace ILogger with LoggerInterface in remote share managerVincent Petry2021-07-271-3/+3
| | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu>
* Fix remote group share decline+accept code pathVincent Petry2021-07-271-0/+36
| | | | | | | | When declining a remote group share through the dialog that appears when notifications are off, the mount point is now correctly saved when re-accepting. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix external share manager with multiple user groupsVincent Petry2021-07-271-2/+10
| | | | | | Use query builder with proper matching for finding the group names. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix remote group share API interactionsVincent Petry2021-07-271-3/+163
| | | | | | | | | | Accepting and declining can now be done repeatedly on both the parent group share and sub-share with the same effects. Added unit tests to cover these cases, and also when the same operation is repeated. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add logging to external shares managerVincent Petry2021-07-271-0/+2
| | | | | | | Instead of just returning false, also log the exception to make debugging database issues easier. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix received federated group sharesVincent Petry2021-07-271-83/+143
| | | | | | | | | | | | Fix pending shares endpoint to consider user-specific sub-entries for group shares whenever a share was accepted or declined. Added unit test for adding remote group shares. Fixed "removeUserShares" to not send a remote request as we never send remote requests for group shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* 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>
* 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-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix variable name for testDaniel Kesselberg2020-12-101-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Adjust defaultJulius Härtl2020-12-081-2/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* set the display name of federated sharees from addressbookArthur Schiwon2020-11-241-1/+11
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-6/+6
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move federated_share_added into a typed eventMorris Jobke2020-07-231-1/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-241-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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-091-1/+1
| | | | 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>
* Fix more testsRoeland Jago Douma2019-11-271-6/+28
| | | | 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>
* fix unit testsBjoern Schiessle2018-07-111-0/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* update unit testsBjoern Schiessle2018-07-111-0/+13
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix external manager testsBjoern Schiessle2018-07-021-10/+29
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Update license headersMorris Jobke2017-11-061-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* 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-9/+6
| | | | 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-081-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more robust test setupRobin Appelman2016-10-121-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix testsRoeland Jago Douma2016-08-241-13/+44
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move tests to PSR-4Joas Schilling2016-05-251-0/+253