Skip to content

Commit 75f9eda

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 afa8549 commit 75f9eda

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
@@ -1183,6 +1183,9 @@ private function doTestCopyRenameFail($operation) {
11831183
$storage2->method('writeStream')
11841184
->willThrowException(new GenericFileException('Failed to copy stream'));
11851185

1186+
$storage2->method('fopen')
1187+
->willReturn(false);
1188+
11861189
$storage1->mkdir('sub');
11871190
$storage1->file_put_contents('foo.txt', '0123456789ABCDEFGH');
11881191
$storage1->mkdir('dirtomove');

0 commit comments

Comments
 (0)