aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Controller/PreviewControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Core/Controller/PreviewControllerTest.php')
-rw-r--r--tests/Core/Controller/PreviewControllerTest.php2
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);