mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
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:
parent
8c21f2b19c
commit
07b046f762
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue