aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2024-07-28 12:14:48 +0200
committerGitHub <noreply@github.com>2024-07-28 12:14:48 +0200
commitc8961c71607e588196f01855b152ecd4726f2459 (patch)
tree82430e11cb986e4ba59c3ffff5d00cb43e4109cc /tests
parent81846daf235c88d263d884b7518c19639e1cf791 (diff)
parentce6768027e67855c166d71a403f14e12d176dec9 (diff)
downloadnextcloud-server-c8961c71607e588196f01855b152ecd4726f2459.tar.gz
nextcloud-server-c8961c71607e588196f01855b152ecd4726f2459.zip
Merge pull request #46763 from nextcloud/backport/46672/stable28
[stable28] Avoid using partial file info as valid one
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Controller/PreviewControllerTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Core/Controller/PreviewControllerTest.php b/tests/Core/Controller/PreviewControllerTest.php
index 1f8cfff1172..d8d1601f873 100644
--- a/tests/Core/Controller/PreviewControllerTest.php
+++ b/tests/Core/Controller/PreviewControllerTest.php
@@ -204,6 +204,7 @@ class PreviewControllerTest extends \Test\TestCase {
->willReturn($userFolder);
$file = $this->createMock(File::class);
+ $file->method('getId')->willReturn(123);
$userFolder->method('get')
->with($this->equalTo('file'))
->willReturn($file);