From 8b271b8a123f0f0cbf3a3d81cf9cf3f99a2e642e Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 25 Oct 2021 16:16:55 +0200 Subject: Fix tests and avoid PHP errors in them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/Core/Controller/PreviewControllerTest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/Core/Controller/PreviewControllerTest.php') 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); -- cgit v1.2.3