summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-13 21:48:53 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-13 21:56:04 +0100
commit4cc2230c58f0b607c1de51d34925450e3e7d25f2 (patch)
tree5c10fa863f3d0931dec99fe38056d08a87ce241c /tests
parentd0a690fde46d1bba886e0a94a5e59c40f1e5c3b0 (diff)
downloadnextcloud-server-4cc2230c58f0b607c1de51d34925450e3e7d25f2.tar.gz
nextcloud-server-4cc2230c58f0b607c1de51d34925450e3e7d25f2.zip
[Share 2.0] Fix pre_share and post_share hooks
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/share20/managertest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/share20/managertest.php b/tests/lib/share20/managertest.php
index 170a1d02af2..bfee9c39593 100644
--- a/tests/lib/share20/managertest.php
+++ b/tests/lib/share20/managertest.php
@@ -1364,6 +1364,8 @@ class ManagerTest extends \Test\TestCase {
$share->expects($this->once())
->method('setTarget')
->with('/target');
+ $share->method('getTarget')
+ ->willReturn('/target');
$share->expects($this->once())
->method('setExpirationDate')
->with($date);
@@ -1388,6 +1390,8 @@ class ManagerTest extends \Test\TestCase {
'token' => 'token',
'run' => true,
'error' => '',
+ 'itemTarget' => '/target',
+ 'shareWith' => null,
];
$hookListnerExpectsPost = [
@@ -1400,6 +1404,9 @@ class ManagerTest extends \Test\TestCase {
'expiration' => $date,
'token' => 'token',
'id' => 42,
+ 'itemTarget' => '/target',
+ 'fileTarget' => '/target',
+ 'shareWith' => null,
];
$share->method('getId')->willReturn(42);