diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2024-07-28 12:14:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-28 12:14:48 +0200 |
commit | c8961c71607e588196f01855b152ecd4726f2459 (patch) | |
tree | 82430e11cb986e4ba59c3ffff5d00cb43e4109cc /tests | |
parent | 81846daf235c88d263d884b7518c19639e1cf791 (diff) | |
parent | ce6768027e67855c166d71a403f14e12d176dec9 (diff) | |
download | nextcloud-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.php | 1 |
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); |