summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1876 from nextcloud/shareesAPI_emailMorris Jobke2016-10-251-12/+244
|\ | | | | Add ShareesAPI E-mail search
| * Add ShareesAPI E-mail searchRoeland Jago Douma2016-10-241-12/+244
| | | | | | | | | | | | | | * Allow to search for SHARE_TYPE_EMAIL (4) * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Use Webdav PUT for uploads in the web browserVincent Petry2016-10-241-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix testsRoeland Jago Douma2016-10-241-19/+19
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Move files_sharing Controllers => ControllerRoeland Jago Douma2016-10-242-3/+3
|/ | | | | | | lib/Controller is the default location for controllers. So lets put them all in there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix middleware testsRoeland Jago Douma2016-10-241-13/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move Share20OCS to ShareAPIControllerRoeland Jago Douma2016-10-242-72/+75
| | | | | | | | | | | | 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 testsRoeland Jago Douma2016-10-211-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adding Open Graph Support for public shares http://ogp.me/Thomas Müller2016-10-211-1/+5
| | | | | | In case no preview is available we display the ownCloud logo Fix unit test
* Merge pull request #1835 from nextcloud/downstream-24948Morris Jobke2016-10-203-4/+4
|\ | | | | Move OC\Files\Storage\Shared to the right namespace
| * Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-203-4/+4
| |
* | Fix post_unshareFromSelf hook parameter formatVincent Petry2016-10-201-0/+22
|/ | | | | | | | | | When unsharing from self in a group share situation, the share items passed to the post_unshareFromSelf hook were using the wrong format in which the attribute names (ex: "share_type") have non camel-case format. This fix makes sure that in group sharing case we use the correct format. It looks like the code was already producing it but in array_merge it was not using it and adding the unprocessed one.
* remove duplicate traitRobin Appelman2016-10-121-1/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.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-123-11/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* phpunit is weirdRobin Appelman2016-10-121-3/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Generate coverage for quick DB testsLukas Reschke2016-10-053-3/+3
| | | | | | This adds the "QUICKDB" group which excludes some tests that abuse unit tests as integration tests as displayed in https://github.com/nextcloud/server/issues/1626 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Inject IHTTPClientServiceLukas Reschke2016-09-291-1/+21
| | | | | | | | | | Otherwise the unit test execution will do a ton of external HTTP requests which fail and then timeout… See https://blackfire.io/profiles/compare/3c67acfa-a11e-4aec-bcd4-c945b006f01e/graph for reference Pretty similar to https://github.com/nextcloud/server/pull/1565 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix fed share test call to return proper resultVincent Petry2016-09-201-6/+22
| | | | | | Fixes an issue where retrying a previously failed federated share would not properly reset the availability flag because the return value was undefined instead of "true".
* Fix testsRoeland Jago Douma2016-09-131-23/+17
|
* Allow increasing permissions for share ownerVincent Petry2016-09-131-0/+108
| | | | | | In some cases, the owner of the share is also recipient through a group share. The owner must still be able to increase permissions in that situation.
* Merge pull request #1317 from nextcloud/add-sharing-disclaimerMorris Jobke2016-09-081-1/+7
|\ | | | | Adding a optional disclaimer to the anonymous upload page
| * Adjust testLukas Reschke2016-09-081-1/+7
| |
* | more efficient querying of numeric storage idsRobin Appelman2016-09-071-0/+1
|/
* Fix getMock files_sharingRoeland Jago Douma2016-09-061-5/+7
|
* Allow space for federated share id searchVincent Petry2016-08-301-0/+52
|
* Sharee API to AppFrameworkRoeland Jago Douma2016-08-261-49/+40
| | | | | | | | * Move to OCSController * Move to Controller folder * Use automatic DI * Use function parameters * Updated tests
* Fix testsRoeland Jago Douma2016-08-241-13/+44
|
* Cleanup TestsRoeland Jago Douma2016-08-172-173/+80
|
* Move updateShare and getShares over to use proper parametersRoeland Jago Douma2016-08-172-144/+58
| | | | * Update tests
* Use parameters in createShareRoeland Jago Douma2016-08-172-262/+63
| | | | * Fix tests
* Add files drop capability for clientsRoeland Jago Douma2016-08-131-0/+2
|
* Move the Share20OCS code over to use the proper DataResponseRoeland Jago Douma2016-08-102-50/+49
|
* Merge pull request #445 from nextcloud/ocs_share_to_appframeworkLukas Reschke2016-08-083-397/+478
|\ | | | | OCS Share API to appframework
| * Fix testsRoeland Jago Douma2016-08-052-397/+363
| |
| * Add OCSShareAPIMiddleware testsRoeland Jago Douma2016-08-051-0/+115
| |
* | Move Share backends to PSR-4 instead of using class path (#24941)Joas Schilling2016-08-051-1/+1
|/
* Make share target consistent when grouping group share with user shareVincent Petry2016-08-031-4/+36
| | | | | | | | | | | | | | | | In some situations, a group share is created before a user share, and the recipient renamed the received share before the latter is created. In this situation, the "file_target" was already modified and the second created share must align to the already renamed share. To achieve this, the MountProvider now groups only by "item_source" value and sorts by share time. This makes it so that the least recent share is selected as super-share and its "file_target" value is then adjusted in all grouped shares. This fixes the issue where this situation would have different "file_target" values resulting in two shared folders appearing instead of one.
* Added more tests for sharing's MountProviderVincent Petry2016-08-031-0/+158
|
* Improved share grouping readability + fixed testVincent Petry2016-08-031-52/+47
|
* Update with robinJoas Schilling2016-07-2121-21/+21
|
* Fix apps/Joas Schilling2016-07-2133-84/+121
|
* Add eventdispatcher to public link viewRoeland Jago Douma2016-07-181-1/+10
|
* Merge pull request #379 from nextcloud/create_federated_share_on_mountMorris Jobke2016-07-181-245/+0
|\ | | | | Create federated share on mount
| * move some stuff over to the federatedfilesharing appBjoern Schiessle2016-07-141-245/+0
| |
* | Fix PHPUnit 5.4 warnings in files_sharing testsRoeland Jago Douma2016-07-154-116/+116
|/
* Simplify test code and don't show anything if no date is setMorris Jobke2016-07-071-9/+3
|
* add unit testsMorris Jobke2016-07-071-3/+40
|
* Merge branch 'master' into sync-masterMorris Jobke2016-07-071-1/+27
|\
| * Merge remote-tracking branch 'upstream/master' into master-sync-upstreamLukas Reschke2016-06-272-12/+81
| |\