aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests/Controller
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-26 16:42:19 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-12-16 09:43:29 +0100
commit37f8f7a5a18e57507330036b747d4b12e58efae4 (patch)
tree4a057e03cae53d21092d06e373fa91fbad2b258f /apps/files_trashbin/tests/Controller
parent6b770eb5799f58c41db2b3249e6e71cf69049fac (diff)
downloadnextcloud-server-37f8f7a5a18e57507330036b747d4b12e58efae4.tar.gz
nextcloud-server-37f8f7a5a18e57507330036b747d4b12e58efae4.zip
Fix tests on PHP 8.1 for encryption, files_sharing, files_version,
files_trashbin and theming apps Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_trashbin/tests/Controller')
-rw-r--r--apps/files_trashbin/tests/Controller/PreviewControllerTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_trashbin/tests/Controller/PreviewControllerTest.php b/apps/files_trashbin/tests/Controller/PreviewControllerTest.php
index 1a36473ecf1..441222bea19 100644
--- a/apps/files_trashbin/tests/Controller/PreviewControllerTest.php
+++ b/apps/files_trashbin/tests/Controller/PreviewControllerTest.php
@@ -144,6 +144,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);