diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-12 11:10:58 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-12 11:10:58 +0100 |
commit | e99c4d83dc3ec93f35ff6d2ddf9521444156ee50 (patch) | |
tree | acdf6a544d8739b7b9e21d1d103b7b758537a97b /tests | |
parent | f8607ac1327f3254f6f4fe86c8418f1b3d447730 (diff) | |
parent | 745bfda41fb033e679ebb43bb347d403b8eb1193 (diff) | |
download | nextcloud-server-e99c4d83dc3ec93f35ff6d2ddf9521444156ee50.tar.gz nextcloud-server-e99c4d83dc3ec93f35ff6d2ddf9521444156ee50.zip |
Merge pull request #22317 from owncloud/fix_invisible_linkshares
Do not allow invisible link shares
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/share20/managertest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/share20/managertest.php b/tests/lib/share20/managertest.php index 73a1b0a6530..1230c191b6b 100644 --- a/tests/lib/share20/managertest.php +++ b/tests/lib/share20/managertest.php @@ -1549,6 +1549,7 @@ class ManagerTest extends \Test\TestCase { 'pathCreateChecks', 'validateExpirationDate', 'verifyPassword', + 'setLinkParent', ]) ->getMock(); @@ -1589,6 +1590,9 @@ class ManagerTest extends \Test\TestCase { $manager->expects($this->once()) ->method('verifyPassword') ->with('password'); + $manager->expects($this->once()) + ->method('setLinkParent') + ->with($share); $this->hasher->expects($this->once()) ->method('hash') |