summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-01-05 08:53:21 +0100
committerJulius Härtl <jus@bitgrid.net>2021-01-05 09:20:35 +0100
commitee842f1c43d2d004d2639382fe0a7ba08f3d06cb (patch)
treebe0a18f0b72b3e5eb1d711f1586b681af008afab /tests
parent364b29b1e96bd3328d1e2a4d96d167100f6897a8 (diff)
downloadnextcloud-server-ee842f1c43d2d004d2639382fe0a7ba08f3d06cb.tar.gz
nextcloud-server-ee842f1c43d2d004d2639382fe0a7ba08f3d06cb.zip
Fix writeStream mocking
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/ViewTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php
index f18af484f87..90decd20a99 100644
--- a/tests/lib/Files/ViewTest.php
+++ b/tests/lib/Files/ViewTest.php
@@ -1163,7 +1163,7 @@ class ViewTest extends \Test\TestCase {
/** @var \PHPUnit\Framework\MockObject\MockObject|Temporary $storage2 */
$storage2 = $this->getMockBuilder(TemporaryNoCross::class)
->setConstructorArgs([[]])
- ->setMethods(['fopen'])
+ ->setMethods(['fopen', 'writeStream'])
->getMock();
$storage2->method('writeStream')