|
|
|
|
@ -1569,6 +1569,7 @@ class ManagerTest extends \Test\TestCase { |
|
|
|
|
->method('getAppValue') |
|
|
|
|
->willReturnMap([ |
|
|
|
|
['core', 'shareapi_only_share_with_group_members', 'no', 'yes'], |
|
|
|
|
['core', 'shareapi_only_share_with_group_members_exclude_group_list', '', '[]'], |
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
self::invokePrivate($this->manager, 'userCreateChecks', [$share]); |
|
|
|
|
@ -1602,6 +1603,7 @@ class ManagerTest extends \Test\TestCase { |
|
|
|
|
->method('getAppValue') |
|
|
|
|
->willReturnMap([ |
|
|
|
|
['core', 'shareapi_only_share_with_group_members', 'no', 'yes'], |
|
|
|
|
['core', 'shareapi_only_share_with_group_members_exclude_group_list', '', '[]'], |
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
$this->defaultProvider |
|
|
|
|
@ -1794,6 +1796,7 @@ class ManagerTest extends \Test\TestCase { |
|
|
|
|
->willReturnMap([ |
|
|
|
|
['core', 'shareapi_only_share_with_group_members', 'no', 'yes'], |
|
|
|
|
['core', 'shareapi_allow_group_sharing', 'yes', 'yes'], |
|
|
|
|
['core', 'shareapi_only_share_with_group_members_exclude_group_list', '', '[]'], |
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
self::invokePrivate($this->manager, 'groupCreateChecks', [$share]); |
|
|
|
|
@ -1817,6 +1820,7 @@ class ManagerTest extends \Test\TestCase { |
|
|
|
|
->willReturnMap([ |
|
|
|
|
['core', 'shareapi_only_share_with_group_members', 'no', 'yes'], |
|
|
|
|
['core', 'shareapi_allow_group_sharing', 'yes', 'yes'], |
|
|
|
|
['core', 'shareapi_only_share_with_group_members_exclude_group_list', '', '[]'], |
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
$this->assertNull($this->invokePrivate($this->manager, 'groupCreateChecks', [$share])); |
|
|
|
|
@ -1846,6 +1850,7 @@ class ManagerTest extends \Test\TestCase { |
|
|
|
|
->willReturnMap([ |
|
|
|
|
['core', 'shareapi_only_share_with_group_members', 'no', 'yes'], |
|
|
|
|
['core', 'shareapi_allow_group_sharing', 'yes', 'yes'], |
|
|
|
|
['core', 'shareapi_only_share_with_group_members_exclude_group_list', '', '[]'], |
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
self::invokePrivate($this->manager, 'groupCreateChecks', [$share]); |
|
|
|
|
|