nextcloud/tests/lib
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
..
Accounts bring back setEmailAddress for the user management 2016-11-25 10:26:48 +01:00
Activity Fix activity manager tests 2016-11-16 09:25:45 +01:00
App Adjust tests 2017-07-17 11:16:16 +02:00
AppFramework Merge pull request #2066 from nextcloud/fix-redirect-double-encoding 2016-11-29 17:21:43 +01:00
Archive Remove unneeded checks if it runs on a Windows machine 2016-07-08 15:55:17 +02:00
Authentication copy remember-me value when renewing a session token 2016-11-27 14:19:57 +01:00
BackgroundJob Fix getMock JobListTest 2016-09-13 09:09:52 +02:00
Cache Fix getMock FileCacheTest 2016-09-13 09:09:52 +02:00
Command Fix getMock Command/Intergrity 2016-09-07 20:42:37 +02:00
Comments Merge pull request #1738 from nextcloud/comments-provide-displaynames-with-mentions 2016-10-26 14:02:49 +02:00
DB Add tests 2016-11-02 21:10:51 +01:00
Encryption Fix shared storage namespace in DecryptAll class 2016-10-20 20:36:50 +02:00
Files round the mtime in touch 2017-05-18 13:22:52 +02:00
Group Skip null groups in group manager (#26871) (#26956) 2017-07-20 16:29:14 +02:00
Hooks Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
Http/Client Fix getMock Http Client 2016-09-07 20:42:37 +02:00
IntegrityCheck Make sure memory limit is > post size and upload filesize 2016-09-13 16:50:36 +02:00
L10N Fix more tests 2016-10-28 22:16:28 +02:00
Lock Fix getMock DBLockingProviderTest 2016-09-13 09:09:53 +02:00
Lockdown Save the scope of an auth token in the session 2017-04-05 23:00:53 +02:00
Log Renamed test classes for file logging tests. 2016-07-22 14:47:50 +02:00
Mail Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
Memcache Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
Migration Fix getMock Migration 2016-09-07 20:42:38 +02:00
Notification Use a php class for the definitions to avoid loading problems 2016-11-09 08:52:07 +01:00
OCS Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
Preview Dispatch event on preview request 2016-11-10 14:28:09 +01:00
PublicNamespace Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
Repair Add a unit test 2016-12-13 13:54:18 +01:00
RichObjectStrings Add test and adjust PHP function arguments 2016-11-09 10:49:57 +01:00
Security dont write a certificate bundle if the shipped ca bundle is empty 2017-01-09 21:11:50 +01:00
Session Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
Settings update tests 2016-11-21 15:59:08 +01:00
Share Cleanup OC_Group usage a bit 2016-11-04 20:55:47 +01:00
Share20 Skip null groups in group manager (#26871) (#26956) 2017-07-20 16:29:14 +02:00
SystemTag Act on effective system tag canAssign permission 2016-05-20 17:56:02 +02:00
Template Fix getMock Template 2016-09-07 20:42:38 +02:00
Traits Fix phpunit Trait warning 2016-07-08 19:36:17 +02:00
Updater Document updater channel & check for correct PHP version in updater 2016-12-06 00:19:13 +01:00
User emit changeUser only if there really was a change (quota, displayname) 2017-06-01 11:50:09 +02:00
Util Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
AllConfigTest.php Revert "Downstream 2016-06-08" 2016-06-09 17:41:57 +02:00
APITest.php FIx lib/ a-d 2016-05-19 09:27:21 +02:00
AppConfigTest.php Fix tests 2017-02-07 17:00:10 +01:00
AppTest.php Fix tests 2017-01-17 11:36:57 +01:00
AutoLoaderTest.php Fix unit tests 2016-05-20 16:35:07 +02:00
AvatarManagerTest.php Add using casing check/fix for initMountPoints 2016-11-02 22:21:46 +01:00
AvatarTest.php avatar to appdata 2016-10-05 11:00:16 +02:00
CapabilitiesManagerTest.php Make the capabilities manager more error proof 2016-08-15 20:37:19 +02:00
ConfigTest.php FIx lib/ a-d 2016-05-19 09:27:21 +02:00
ContactsManagerTest.php FIx lib/ a-d 2016-05-19 09:27:21 +02:00
DateTimeFormatterTest.php Fix more tests 2016-10-28 22:16:28 +02:00
ErrorHandlerTest.php FIx lib/ a-d 2016-05-19 09:27:21 +02:00
FileChunkingTest.php Fix getMock FileChunkingTest 2016-09-07 20:42:37 +02:00
FilesTest.php Make sure memory limit is > post size and upload filesize 2016-09-13 16:50:36 +02:00
HelperStorageTest.php Fix getMock HelperStorageTest 2016-09-13 09:09:53 +02:00
HookHelper.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
HTTPHelperTest.php Fix getMock HTTPHelper 2016-09-07 20:42:37 +02:00
ImageTest.php Remove unneeded checks if it runs on a Windows machine 2016-07-08 15:55:17 +02:00
InfoXmlTest.php Add tests for commands in info.xml 2016-10-11 19:48:31 +02:00
InstallerTest.php Don't use cached informations for app version 2016-12-09 18:01:45 +01:00
LargeFileHelperGetFileSizeTest.php Remove unneeded Windows logic 2016-09-01 10:47:57 +02:00
LargeFileHelperTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
LegacyHelperTest.php Simplify isSubDirectory check 2016-10-07 21:56:43 +02:00
LoggerTest.php Better fallback for unknown log types 2017-01-10 13:01:00 +01:00
NaturalSortTest.php Fix lib/ 2016-05-19 09:38:52 +02:00
NavigationManagerTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
PreviewTest.php Fix failing preview unit tests (#26039) 2016-09-12 16:46:39 +02:00
RepairStepTest.php Fix lib/ 2016-05-19 09:38:52 +02:00
ServerTest.php Add update support 2016-10-31 17:17:47 +01:00
SetupTest.php Fix getMock SetupTest 2016-09-07 20:42:38 +02:00
StreamWrappersTest.php Fix tests 2016-10-31 17:17:45 +01:00
SubAdminTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
TagsTest.php Fix getMock TagTest 2016-09-13 09:09:53 +02:00
TemplateFunctionsTest.php Fix lib/ 2016-05-19 09:38:52 +02:00
TempManagerTest.php Fix getMock TempManagerTest 2016-09-07 20:42:38 +02:00
TestCase.php Add a magic wrapper from hell to allow phpunit4 to run the code again 2016-11-15 14:49:14 +01:00
TestCasePhpUnit4.php Add a magic wrapper from hell to allow phpunit4 to run the code again 2016-11-15 14:49:14 +01:00
TestCasePhpUnit5.php Add a magic wrapper from hell to allow phpunit4 to run the code again 2016-11-15 14:49:14 +01:00
TestCasePhpUnitCompatibility.php Add a magic wrapper from hell to allow phpunit4 to run the code again 2016-11-15 14:49:14 +01:00
TestMoveableMountPoint.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
UpdaterTest.php Prevent migration from ownCloud 10 to Nextcloud 11 2017-03-30 15:22:39 +02:00
UrlGeneratorTest.php Fix urlgenerator test 2016-11-03 14:00:33 +01:00
UserTest.php Remove warning 2017-01-05 15:16:32 +01:00
UtilCheckServerTest.php Remove unneeded checks if it runs on a Windows machine 2016-07-08 15:55:17 +02:00
UtilTest.php Add system config htaccess.IgnoreFrontController for prettyURLs w/o mod_env 2016-11-16 22:28:49 +01:00