aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/ApiTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Revert "fix(performance): Do not set up filesystem on every call"Joas Schilling2023-02-211-6/+0
|
* tests: Fix test isolation on object storageJulius Härtl2023-02-171-0/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Skip buggy tests for 32bits CICôme Chilliet2023-02-071-4/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Honor permissions of new link share via OCS APIJan-Philipp Litza2022-12-061-2/+1
| | | | | | | | | | | The API currently overrides the supplied permissions with "read only" when a file is shared via link. It allows to update the permissions later, however. This keeps the default to "read only" but honors the permissions supplied by API call if any. Signed-off-by: Jan-Philipp Litza <jpl@plutex.de>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix share attribute related tests + code styleVincent Petry2022-07-281-2/+9
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-281-1/+6
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix unit testsJoas Schilling2022-06-071-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* ensure user folder is created in ApiTestRobin Appelman2022-04-041-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Unify spelling in testValdnet2021-05-201-1/+1
|
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Indicate preview availability in share api responsesRichard Steinmetz2020-10-131-1/+4
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | 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>
* Expose status via Collaborators APIGeorg Ehrke2020-08-141-1/+4
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Update share type constant usageJoas Schilling2020-06-241-59/+59
| | | | 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-291-0/+1
| | | | 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>
* Add visibility to all constantsChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-25/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-12/+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>
* Fix multiline commentsChristoph Wurst2020-04-081-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 short array syntax, everywhereChristoph Wurst2020-03-261-8/+8
| | | | 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>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix share testsRoeland Jago Douma2019-11-201-1/+48
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add support for room shares to ShareAPIControllerDaniel Calviño Sánchez2018-08-081-1/+4
| | | | | | | | | | | | | | | | In some cases, the ShareAPIController requires explicit handling of each type of share (for example, to format a share for a DataResponse). Room shares are implemented in an external app (Nextcloud Talk), so in order to keep the controller as isolated as possible from room share specifics all that explicit handling is done in a helper class provided by the Talk app. In other cases it is just enough to call the share manager specifying a room share type; note that the share manager is guarded against share types for which there is no provider, so it is not necessary to explicitly check that before passing room shares to the share manager. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add support for sending the password by Talk to ShareAPIControllerDaniel Calviño Sánchez2018-07-241-7/+10
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Get rid of shareItemMorris Jobke2018-05-231-22/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fix unit testsBjoern Schiessle2018-02-271-1/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix risky tests without assertionsJoas Schilling2018-01-251-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove IAppConfig::setValueRoeland Jago Douma2018-01-171-11/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-2/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup usage of shareItem in internal code baseMorris Jobke2017-08-151-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup unused methodsMorris Jobke2017-08-151-63/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Improve wording of various error messagesJan-Christoph Borchardt2017-06-211-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* update unit testsBjoern Schiessle2017-04-071-30/+0
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* unit tests updated and new addedBjoern Schiessle2016-11-011-3/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Move Share20OCS to ShareAPIControllerRoeland Jago Douma2016-10-241-6/+4
| | | | | | | | | | | | It was already a controller just still residing in its old location. * Moved ShareAPIController to user plain userID instead of user object * Moved Share20OCS to ShareAPIController * Removed initisation of class from Application.php and leave it to the AppFramework * Fixed tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fix share tests not passing pathRobin Appelman2016-10-121-4/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more robust test setupRobin Appelman2016-10-121-8/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* phpunit is weirdRobin Appelman2016-10-121-3/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Cleanup TestsRoeland Jago Douma2016-08-171-165/+72
|
* Move updateShare and getShares over to use proper parametersRoeland Jago Douma2016-08-171-39/+33
| | | | * Update tests