Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-12 13:10:58 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-12 13:10:58 +0300
commite99c4d83dc3ec93f35ff6d2ddf9521444156ee50 (patch)
treeacdf6a544d8739b7b9e21d1d103b7b758537a97b /tests
parentf8607ac1327f3254f6f4fe86c8418f1b3d447730 (diff)
parent745bfda41fb033e679ebb43bb347d403b8eb1193 (diff)
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.php4
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')