diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2024-07-25 19:37:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 19:37:30 +0200 |
commit | 4f2a29adf95c57bef5d01f27c8b741a9840e82b3 (patch) | |
tree | 964245a9302baa5b49f215642fb1f82acfa5987b /tests | |
parent | 2e353d88498e841a468eaa28874f18ba20c7a9b1 (diff) | |
parent | 2b0bc8b310aef675af35373fbc8a7884869f7d05 (diff) | |
download | nextcloud-server-4f2a29adf95c57bef5d01f27c8b741a9840e82b3.tar.gz nextcloud-server-4f2a29adf95c57bef5d01f27c8b741a9840e82b3.zip |
Merge pull request #46672 from nextcloud/fix/preview-invalid-id
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 d330c1d5209..7c9a32eae38 100644 --- a/tests/Core/Controller/PreviewControllerTest.php +++ b/tests/Core/Controller/PreviewControllerTest.php @@ -187,6 +187,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); |