diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-09 10:20:25 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-09 10:20:25 +0100 |
commit | 38cbfed476b2ba1fc33564752b7e49283c657d08 (patch) | |
tree | d3b184f1e97097c4b0cf4c3f4cbd0f8f2686e11f /apps/files_sharing | |
parent | cd685007316145cbde3c053f58d3f98db29bdd0a (diff) | |
download | nextcloud-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.php | 6 |
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()) |