summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-02-09 10:20:25 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-02-09 10:20:25 +0100
commit38cbfed476b2ba1fc33564752b7e49283c657d08 (patch)
treed3b184f1e97097c4b0cf4c3f4cbd0f8f2686e11f /apps/files_sharing
parentcd685007316145cbde3c053f58d3f98db29bdd0a (diff)
downloadnextcloud-server-38cbfed476b2ba1fc33564752b7e49283c657d08.tar.gz
nextcloud-server-38cbfed476b2ba1fc33564752b7e49283c657d08.zip
Fix unit test
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/tests/controller/sharecontroller.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/controller/sharecontroller.php b/apps/files_sharing/tests/controller/sharecontroller.php
index 22e15972cd6..58524d8f030 100644
--- a/apps/files_sharing/tests/controller/sharecontroller.php
+++ b/apps/files_sharing/tests/controller/sharecontroller.php
@@ -218,8 +218,12 @@ class ShareControllerTest extends \Test\TestCase {
}
public function testAuthenticateInvalidPassword() {
+ $node = $this->getMock('\OCP\Files\File');
+ $node->method('getId')->willReturn(100);
+
$share = \OC::$server->getShareManager()->newShare();
- $share->setId(42);
+ $share->setId(42)
+ ->setNode($node);
$this->shareManager
->expects($this->once())