fix(tests): Fix fopen in mock returning null which is not a valid return

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/54607/head
Côme Chilliet 4 months ago committed by Côme Chilliet
parent 8c21f2b19c
commit 07b046f762
  1. 3
      tests/lib/Files/ViewTest.php

@ -1205,6 +1205,9 @@ class ViewTest extends \Test\TestCase {
$storage2->method('writeStream')
->willThrowException(new GenericFileException('Failed to copy stream'));
$storage2->method('fopen')
->willReturn(false);
$storage1->mkdir('sub');
$storage1->file_put_contents('foo.txt', '0123456789ABCDEFGH');
$storage1->mkdir('dirtomove');

Loading…
Cancel
Save