diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-06-21 11:37:47 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-07-25 17:40:12 +0000 |
commit | 7f9b44d6a54b85de076ecdac5c4168e4d7f5b8b7 (patch) | |
tree | 4ca7c84722b5f1105accdd8a5d75ed05112bd694 /tests | |
parent | 942a91916aa6713a347717e451228d5417bd568e (diff) | |
download | nextcloud-server-7f9b44d6a54b85de076ecdac5c4168e4d7f5b8b7.tar.gz nextcloud-server-7f9b44d6a54b85de076ecdac5c4168e4d7f5b8b7.zip |
fix: Ignore preview requests for invalid file ids
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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); |