Fix unit tests
This commit is contained in:
parent
f9f2800016
commit
359c62d90e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue