Skip to content

Commit ae080bf

Browse files
committed
fix(tests): Fix fopen in mock returning null which is not a valid return
Signed-off-by: Côme Chilliet <[email protected]>
1 parent f1fb150 commit ae080bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/lib/Files/ViewTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,9 @@ private function doTestCopyRenameFail($operation) {
11851185
$storage2->method('writeStream')
11861186
->willThrowException(new GenericFileException('Failed to copy stream'));
11871187

1188+
$storage2->method('fopen')
1189+
->willReturn(false);
1190+
11881191
$storage1->mkdir('sub');
11891192
$storage1->file_put_contents('foo.txt', '0123456789ABCDEFGH');
11901193
$storage1->mkdir('dirtomove');

0 commit comments

Comments
 (0)