nextcloud/apps/files_sharing/tests
Vincent Petry a78b13da82 Skip null groups in group manager (#26871) (#26956)
* 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>
2017-07-20 16:29:14 +02:00
..
Controller Skip null groups in group manager (#26871) (#26956) 2017-07-20 16:29:14 +02:00
External more robust test setup 2016-10-12 16:12:34 +02:00
Middleware Fix tests 2016-10-24 13:25:59 +02:00
js Add tests 2016-11-07 21:02:23 +01:00
ApiTest.php unit tests updated and new added 2016-11-01 19:54:41 +01:00
BackendTest.php Move Share backends to PSR-4 instead of using class path (#24941) 2016-08-05 14:13:41 +02:00
CacheTest.php Move OC\Files\Storage\Shared to the right namespace 2016-10-20 20:27:44 +02:00
CapabilitiesTest.php remove 'send mail notification' option from sharing, replaced by send-by-mail feature 2016-11-02 18:30:38 +01:00
DeleteOrphanedSharesJobTest.php Fix apps/ 2016-07-21 18:13:57 +02:00
EncryptedSizePropagationTest.php Update with robin 2016-07-21 18:13:58 +02:00
EtagPropagationTest.php Generate coverage for quick DB tests 2016-10-05 13:55:44 +02:00
ExpireSharesJobTest.php Fix apps/ 2016-07-21 18:13:57 +02:00
ExternalStorageTest.php Inject IHTTPClientService 2016-09-29 00:26:20 +02:00
GroupEtagPropagationTest.php Fix post_unshareFromSelf hook parameter format 2016-10-20 16:09:08 +02:00
HelperTest.php Fix apps/ 2016-07-21 18:13:57 +02:00
LockingTest.php Update with robin 2016-07-21 18:13:58 +02:00
MigrationTest.php remove the 'shareapi_allow_mail_notification' setting 2016-11-02 21:17:05 +01:00
MountProviderTest.php Skip null groups in group manager (#26871) (#26956) 2017-07-20 16:29:14 +02:00
PermissionsTest.php Update with robin 2016-07-21 18:13:58 +02:00
PropagationTestCase.php Update with robin 2016-07-21 18:13:58 +02:00
ShareTest.php Cleanup OC_Group usage a bit 2016-11-04 20:55:47 +01:00
SharedMountTest.php Cleanup OC_Group usage a bit 2016-11-04 20:55:47 +01:00
SharedStorageTest.php set cache to failedcache when shared storage init fails 2017-05-22 23:16:28 +02:00
SizePropagationTest.php only query substorages to calculate the final mtime/size/etag lazily 2016-11-10 13:59:22 +01:00
TestCase.php Move OC\Files\Storage\Shared to the right namespace 2016-10-20 20:27:44 +02:00
UnshareChildrenTest.php Update with robin 2016-07-21 18:13:58 +02:00
UpdaterTest.php Fix tests 2016-10-31 17:17:45 +01:00
WatcherTest.php Update with robin 2016-07-21 18:13:58 +02:00