aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/tests/Controller/PreviewControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/tests/Controller/PreviewControllerTest.php')
-rw-r--r--apps/files_versions/tests/Controller/PreviewControllerTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_versions/tests/Controller/PreviewControllerTest.php b/apps/files_versions/tests/Controller/PreviewControllerTest.php
index 64a060e3108..0457d0d5f24 100644
--- a/apps/files_versions/tests/Controller/PreviewControllerTest.php
+++ b/apps/files_versions/tests/Controller/PreviewControllerTest.php
@@ -141,6 +141,8 @@ class PreviewControllerTest extends TestCase {
->willReturn($file);
$preview = $this->createMock(ISimpleFile::class);
+ $preview->method('getName')->willReturn('name');
+ $preview->method('getMTime')->willReturn(42);
$this->previewManager->method('getPreview')
->with($this->equalTo($file), 10, 10, true, IPreview::MODE_FILL, 'myMime')
->willReturn($preview);