summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/MountProviderTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Add room shares to the MountProvider for sharesDaniel Calviño Sánchez2018-08-081-1/+23
| | | | | | | | The MountProvider for shares creates mount points for the files shared with the user, which makes possible to use the received shared files and folders as regular files and folders. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Some app fixes of phpstorm inspectionsRoeland Jago Douma2017-07-241-1/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #3884 from nextcloud/downstream-26956Joas Schilling2017-03-201-1/+21
|\ | | | | Skip null groups in group manager
| * Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-171-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Skip null groups in group manager (#26871) * Skip null groups in group manager * Also skip null groups in group manager's search function * Add more group null checks in sharing code * Add unit tests for null group safety in group manager * Add unit tests for sharing code null group checks * Added tests for null groups handling in sharing code * Ignore moveShare optional repair in mount provider In some cases, data is inconsistent in the oc_share table due to legacy data. The mount provider might attempt to make it consistent but if the target group does not exist any more it cannot work. In such case we simply ignore the exception as it is not critical. Keeping the exception would break user accounts as they would be unable to use their filesystem. * Adjust null group handing + tests * Fix new group manager tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | shares-circlesMaxence Lange2017-03-171-0/+12
|/ | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* Fix getMock files_sharingRoeland Jago Douma2016-09-061-5/+7
|
* 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
|
* Fix apps/Joas Schilling2016-07-211-1/+4
|
* Fix PHPUnit 5.4 warnings in files_sharing testsRoeland Jago Douma2016-07-151-10/+10
|
* fix swift primary object store test (#25281)Thomas Müller2016-07-051-0/+3
| | | | | | | | | | | | | * Wait for socket to be open * Fix call on null * Allow DB access for MountProviderTest Makes unit tests pass when using object store, since their FS access is actually oc_filecache DB access. It is currently not possible to mock or bypass the logic from "SharedMount::verifyMountPoint()" triggered by this test.
* fix broken unit test (#25198)Thomas Müller2016-06-211-1/+8
|
* Filter out group shares for owner where owner is included (#25190)Vincent Petry2016-06-211-0/+129