aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/SharesReminderJobTest.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-09-19 10:40:57 +0200
committerRobin Appelman <robin@icewind.nl>2024-09-19 11:59:46 +0200
commit0bdd25eb0f6dc4d8398abd75570a88eb4c5c779f (patch)
treea18e4e9a871ee2f5172dc3e873cd8372bf6d1910 /apps/files_sharing/tests/SharesReminderJobTest.php
parent6b8d331a71b1cd414408f8c6231da10d1dba7814 (diff)
downloadnextcloud-server-0bdd25eb0f6dc4d8398abd75570a88eb4c5c779f.tar.gz
nextcloud-server-0bdd25eb0f6dc4d8398abd75570a88eb4c5c779f.zip
fix: add sharding compatible version of share reminder jobshare-reminder-sharding
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/tests/SharesReminderJobTest.php')
-rw-r--r--apps/files_sharing/tests/SharesReminderJobTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/SharesReminderJobTest.php b/apps/files_sharing/tests/SharesReminderJobTest.php
index 5f01f4850e9..9889ff47c53 100644
--- a/apps/files_sharing/tests/SharesReminderJobTest.php
+++ b/apps/files_sharing/tests/SharesReminderJobTest.php
@@ -12,6 +12,7 @@ use OCA\Files_Sharing\SharesReminderJob;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Constants;
use OCP\Defaults;
+use OCP\Files\IMimeTypeLoader;
use OCP\Files\IRootFolder;
use OCP\IDBConnection;
use OCP\IURLGenerator;
@@ -71,6 +72,7 @@ class SharesReminderJobTest extends \Test\TestCase {
\OC::$server->get(IFactory::class),
$this->mailer,
\OC::$server->get(Defaults::class),
+ \OC::$server->get(IMimeTypeLoader::class),
);
}
@@ -158,7 +160,7 @@ class SharesReminderJobTest extends \Test\TestCase {
$testFolder = $user1Folder->newFolder('test');
if (!$isEmpty) {
- $testFolder->newFile('some_file.txt');
+ $testFolder->newFile('some_file.txt', 'content');
}
$share = $this->shareManager->newShare();