summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Disable link shares of disabled usersRoeland Jago Douma2020-02-071-6/+134
| | | | | | Fixes #10869 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't show link shares hash in inherited share listRoeland Jago Douma2020-01-151-26/+26
| | | | | | This adds no value at all. Just showing the text "(Shared link)" now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not use $_GETRoeland Jago Douma2020-01-051-2/+5
| | | | | | The appframework is more than capable of handling this properly. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-0537-41/+60
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fixing tests + avoid duplicate in getFormattedShares()Maxence Lange2019-12-031-5/+6
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Fix testsJohn Molakvoæ (skjnldsv)2019-12-021-3/+2
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Mode to modern phpunitRoeland Jago Douma2019-11-2715-131/+133
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix more testsRoeland Jago Douma2019-11-272-38/+60
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-2730-55/+55
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Apply share permission mask to all files obtained via shareinfoRoeland Jago Douma2019-11-261-4/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-2215-23/+24
| | | | | | | | | | | * 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>
* Fix share testsRoeland Jago Douma2019-11-2010-25/+125
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix sharing breadcrumbsJohn Molakvoæ (skjnldsv)2019-11-062-1024/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix current user edit/delete permissionsJohn Molakvoæ (skjnldsv)2019-10-291-0/+81
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Adjust unit tests to new OCA.SidebarJohn Molakvoæ (skjnldsv)2019-10-291-207/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #17693 from nextcloud/enh/unused-test-dependencyRoeland Jago Douma2019-10-261-1/+0
|\ | | | | Remove unused import Punic\Data
| * Remove unused import Punic\DataDaniel Kesselberg2019-10-261-1/+0
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Do not return shares with the current userDaniel Calviño Sánchez2019-10-251-2/+0
| | | | | | | | | | | | | | | | Getting the shares of a file no longer returns shares with the current user for consistency with the results when getting the shares including subfiles. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add missing share types when getting shares of a fileDaniel Calviño Sánchez2019-10-251-0/+8
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Unify share type sorting when getting shares of a file or with subfilesDaniel Calviño Sánchez2019-10-251-1/+1
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Remove unneeded calls to "ShareManager::shareProviderExists()"Daniel Calviño Sánchez2019-10-251-12/+3
| | | | | | | | | | | | | | | | | | "ShareManager::getSharesBy()" already checks if the share provider exists before returning the shares and, if the provider does not exist, it returns an empty array. Therefore it is not needed to explicitly check if the provider exists or not. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add unit tests for getting shares of a fileDaniel Calviño Sánchez2019-10-251-6/+185
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add unit tests for getting shares including subfilesDaniel Calviño Sánchez2019-10-251-0/+421
|/ | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Include the share in the Files_Sharing::loadAdditionalScripts eventDaniel Calviño Sánchez2019-10-171-2/+12
| | | | | | | | This provides a better context for apps using the event, for example to load one script or another depending on whether the share is a file or a folder. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Remove deprecated legacy file actionsJulius Härtl2019-10-141-26/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix shares read permissionsJohn Molakvoæ (skjnldsv)2019-10-041-0/+62
| | | | | | | A user with reshare permissions on a file is now able to get any share of that file (just like the owner). Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add checks for whether a user with access to a share can delete itJohn Molakvoæ (skjnldsv)2019-10-041-3/+203
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bye Spreed namespace, hello Talk!Joas Schilling2019-09-051-8/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove deprecated searchByTagRoeland Jago Douma2019-07-261-90/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove duplicate testsJoas Schilling2019-07-031-144/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Unify the permission checking in one place onlyJoas Schilling2019-07-031-3/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix sharing testsRoeland Jago Douma2019-06-271-0/+230
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move oc_webroot, OC.webroot and OC.getRootPath() to the bundleChristoph Wurst2019-05-061-3/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Harden public preview testsRoeland Jago Douma2019-04-161-1/+10
| | | | | | This way there are less timing issues. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add link icon for public link tooJohn Molakvoæ (skjnldsv)2019-03-211-5/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Search sharees on lookup server when explicitly requested by userChristoph Wurst2019-02-261-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show sharing recommendationsChristoph Wurst2019-02-251-0/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Call proper function when fetching link shares in the breadcrumb viewJulius Härtl2019-01-221-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>