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/54628/head
Côme Chilliet 2025-08-25 12:38:41 +07:00 committed by Côme Chilliet
parent f1fb150055
commit ae080bf8d8
1 changed files with 3 additions and 0 deletions

@ -1185,6 +1185,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');