Fix writeStream mocking

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-01-05 08:53:21 +01:00 committed by backportbot[bot]
parent 2f6b2b6fa4
commit 865e4ab0ec
1 changed files with 1 additions and 1 deletions

View File

@ -1163,7 +1163,7 @@ class ViewTest extends \Test\TestCase {
/** @var \PHPUnit\Framework\MockObject\MockObject|Temporary $storage2 */ /** @var \PHPUnit\Framework\MockObject\MockObject|Temporary $storage2 */
$storage2 = $this->getMockBuilder(TemporaryNoCross::class) $storage2 = $this->getMockBuilder(TemporaryNoCross::class)
->setConstructorArgs([[]]) ->setConstructorArgs([[]])
->setMethods(['fopen']) ->setMethods(['fopen', 'writeStream'])
->getMock(); ->getMock();
$storage2->method('writeStream') $storage2->method('writeStream')