aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Repair/Owncloud/CleanPreviewsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Repair/Owncloud/CleanPreviewsTest.php')
-rw-r--r--tests/lib/Repair/Owncloud/CleanPreviewsTest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lib/Repair/Owncloud/CleanPreviewsTest.php b/tests/lib/Repair/Owncloud/CleanPreviewsTest.php
index 3a1936076a0..e5a4441a4fa 100644
--- a/tests/lib/Repair/Owncloud/CleanPreviewsTest.php
+++ b/tests/lib/Repair/Owncloud/CleanPreviewsTest.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -52,15 +53,15 @@ class CleanPreviewsTest extends TestCase {
$this->userManager->expects($this->once())
->method('callForSeenUsers')
- ->will($this->returnCallback(function (\Closure $function) use (&$user1, $user2) {
+ ->willReturnCallback(function (\Closure $function) use (&$user1, $user2): void {
$function($user1);
$function($user2);
- }));
+ });
$jobListCalls = [];
$this->jobList->expects($this->exactly(2))
->method('add')
- ->willReturnCallback(function () use (&$jobListCalls) {
+ ->willReturnCallback(function () use (&$jobListCalls): void {
$jobListCalls[] = func_get_args();
});