aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-1618-15/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show unique displayname context in the user share list entriesJulius Härtl2020-12-141-0/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #24630 from nextcloud/enh/noid/unknown_named_parameterRoeland Jago Douma2020-12-101-1/+1
|\ | | | | Error: Unknown named parameter $remote_id
| * Fix variable name for testDaniel Kesselberg2020-12-101-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #24605 from nextcloud/enh/share-deckRoeland Jago Douma2020-12-102-7/+29
|\ \ | |/ |/| Add deck share provider support
| * Address minor commentsJulius Härtl2020-12-091-4/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Adjust mountprovider testsJulius Härtl2020-12-092-3/+25
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Adjust defaultJulius Härtl2020-12-081-2/+3
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Harde CapabiltiesTestRoeland Jago Douma2020-12-071-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Replace static call to Share::unshare with ShareManager->deleteShare in testsMorris Jobke2020-11-301-3/+1
| | | | | | And then cleanup all the code that is dead then... Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* set the display name of federated sharees from addressbookArthur Schiwon2020-11-242-2/+22
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Make the expire shares cron job actually expire the sharesRoeland Jago Douma2020-11-191-15/+9
| | | | | | | | | | Right now we just delete the shares from the DB. Which is efficient sure. But doesn't trigger any real cleanup. So no Admin audit entries or any other post processing is done. This makes sure we really trigger this. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't leave cursors open when tests failJoas Schilling2020-11-092-3/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return correct error message on share download without read permissionMorris Jobke2020-10-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* SharedMountTest.php:367 is unreliableMorris Jobke2020-10-161-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Indicate preview availability in share api responsesRichard Steinmetz2020-10-132-2/+94
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-056-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show filename on share link downloadJohn Molakvoæ (skjnldsv)2020-09-171-17/+21
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-249-0/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Expose status via Collaborators APIGeorg Ehrke2020-08-142-8/+28
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-1212-60/+60
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #21954 from nextcloud/techdebt/noid/bootstrap-files_trashbinblizzz2020-08-072-3/+10
|\ | | | | Use IBootstrap for the files_trashbin app
| * Use IBootstrap for the files_trashbin appMorris Jobke2020-07-232-3/+10
| | | | | | | | 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>
* Add BeforeTemplateRenderedEvent for files_sharingJulius Härtl2020-07-151-12/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* better cleanup in share testsRobin Appelman2020-07-092-0/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix testsJoas Schilling2020-06-241-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update share type constant usageJoas Schilling2020-06-2420-254/+267
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix share update testJulius Härtl2020-05-151-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 19Christoph Wurst2020-04-2910-0/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Link shares have reshare permission if outgoing federated shares are enabledJulius Härtl2020-04-211-2/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Also disallow ; in remote urlsJoas Schilling2020-04-141-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add visibility to all constantsChristoph Wurst2020-04-105-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-105-37/+37
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1021-58/+25
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-092-20/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-098-29/+29
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-095-2/+3
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-092-14/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a test and fix the existing onesJoas Schilling2020-04-011-29/+220
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-3115-1/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-2610-153/+153
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-259-115/+115
|/ | | | 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>
* Fix willReturnOnConsecutiveCallsJoas Schilling2020-03-131-3/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't allow anchors and queries in remote urlsJoas Schilling2020-03-121-30/+47
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>