Fix unit tests

This commit is contained in:
Roeland Jago Douma 2016-02-09 14:56:47 +01:00 committed by Robin Appelman
parent f9f2800016
commit 359c62d90e

View file

@ -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);