diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-09 14:56:47 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-02-09 15:03:00 +0100 |
commit | 359c62d90ec5729541a4b97d0e7c9116abb409e9 (patch) | |
tree | d94584894c537a545c10d9bc94ca0e965f96abf4 | |
parent | f9f28000166628315a0e212ff51ef104242ab96f (diff) | |
download | nextcloud-server-359c62d90ec5729541a4b97d0e7c9116abb409e9.tar.gz nextcloud-server-359c62d90ec5729541a4b97d0e7c9116abb409e9.zip |
Fix unit tests
-rw-r--r-- | apps/files_sharing/tests/controller/sharecontroller.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/controller/sharecontroller.php b/apps/files_sharing/tests/controller/sharecontroller.php index 11dc082390c..8eb9cb82842 100644 --- a/apps/files_sharing/tests/controller/sharecontroller.php +++ b/apps/files_sharing/tests/controller/sharecontroller.php @@ -304,6 +304,8 @@ class ShareControllerTest extends \Test\TestCase { $file->method('getName')->willReturn('file1.txt'); $file->method('getMimetype')->willReturn('text/plain'); $file->method('getSize')->willReturn(33); + $file->method('isReadable')->willReturn(true); + $file->method('isShareable')->willReturn(true); $share = \OC::$server->getShareManager()->newShare(); $share->setId(42); |