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

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-08-25 12:38:41 +02:00 committed by Côme Chilliet
parent 8c21f2b19c
commit 07b046f762

View file

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