aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-4/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-17/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-291-29/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(federation): Fix creating local cloudIds with http:// protocolJoas Schilling2024-03-251-10/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: phpunitJohn Molakvoæ2024-02-131-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Migrate federated file sharing to PSR LoggerInterfaceBenjamin Gaussorgues2023-07-071-17/+16
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* adjusts tests for CloudIdManagerRobin Appelman2022-08-311-1/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove at() matcher from tests in federatedfilesharingCôme Chilliet2022-05-241-5/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@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/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Unit tests for federated share expiration dateVincent Petry2021-04-151-7/+22
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* l10n: Add word user in FederatedShareProvider.phpValdnet2021-04-111-1/+1
| | | | | | Standardizing text strings with other Nextcloud applications. 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-3/+57
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-8/+8
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace deprecated assertArraySubset with logic that does the sameMorris Jobke2020-07-231-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-241-25/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-3/+2
| | | | | | | | | | | | | | | 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>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+2
| | | | 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>
* Default value of lookupServerEnabled should be the same everywhereGeorg Ehrke2020-03-171-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* 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-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-0/+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 unit testsBjoern Schiessle2018-07-111-2/+26
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix federatedshareprovidertestRoeland Jago Douma2018-01-161-0/+18
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-15/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add new config switched for the global scale architectureBjoern Schiessle2017-05-291-19/+61
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-1/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix federated file sharingJoas Schilling2017-04-131-4/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add mail element to access listRoeland Jago Douma2017-04-131-0/+28
| | | | | | | | * Each provider just returns what they have so adding an element won't require changing everything * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* allow to disable upload to lookup server, by default it is enabledBjoern Schiessle2017-04-071-0/+32
| | | | 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-2/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* catch all exception and return a user friendly exception messageBjoern Schiessle2016-11-021-4/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add defaultShareProvider & federatedshareprovider testsRoeland Jago Douma2016-11-011-0/+45
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix deprecated usages of getMock in federatedfilesharingRoeland Jago Douma2016-08-311-16/+16
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-2/+4
|
* Handle exceptions thrown while trying to notify remote server of a fed shareRobin Appelman2016-06-271-4/+56
|
* Update license headersLukas Reschke2016-05-261-0/+2
|
* use share initiator as fall back to access the fileBjörn Schießle2016-05-201-3/+49
| | | | | in case of federated re-shares the owner can be a remote user. Therefore we can't always use to owner to access the local file
* create re-share by owner and propagate unshare and unshare-from self requestBjörn Schießle2016-05-201-9/+55
| | | | correctly accross share owner and share initiator
* Move FederatedFileSharing to PSR-4Joas Schilling2016-05-181-0/+557