diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-25 16:16:55 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-23 09:29:01 +0100 |
commit | 8b271b8a123f0f0cbf3a3d81cf9cf3f99a2e642e (patch) | |
tree | 2a9aab48581704506965f8ff7628d25e13fa0042 /tests/Core/Controller/PreviewControllerTest.php | |
parent | cd72045433eafc8f73a620239dc5afa6a0a6d84d (diff) | |
download | nextcloud-server-8b271b8a123f0f0cbf3a3d81cf9cf3f99a2e642e.tar.gz nextcloud-server-8b271b8a123f0f0cbf3a3d81cf9cf3f99a2e642e.zip |
Fix tests and avoid PHP errors in them
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/Core/Controller/PreviewControllerTest.php')
-rw-r--r-- | tests/Core/Controller/PreviewControllerTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Core/Controller/PreviewControllerTest.php b/tests/Core/Controller/PreviewControllerTest.php index e1d1529c655..704ddade7a4 100644 --- a/tests/Core/Controller/PreviewControllerTest.php +++ b/tests/Core/Controller/PreviewControllerTest.php @@ -212,6 +212,8 @@ class PreviewControllerTest extends \Test\TestCase { ->willReturn(true); $preview = $this->createMock(ISimpleFile::class); + $preview->method('getName')->willReturn('my name'); + $preview->method('getMTime')->willReturn(42); $this->previewManager->method('getPreview') ->with($this->equalTo($file), 10, 10, false, $this->equalTo('myMode')) ->willReturn($preview); |