aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-07-12 18:59:45 -0400
committerAndy Scherzinger <info@andy-scherzinger.de>2025-02-17 19:21:42 +0100
commit635dbdc7857d90d8ca06f81e0b464d883663c6a3 (patch)
treecc0f466458e5b0a0a35ece60fee43484cc7f12ad /tests
parent3c57d9cd8b0cee7bfbf40e00fbcaef010aad0842 (diff)
downloadnextcloud-server-backport/46480/stable29.tar.gz
nextcloud-server-backport/46480/stable29.zip
fix(Mailer): Fix sendmail binary fallbackbackport/46480/stable29
Signed-off-by: Josh <josh.t.richards@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Mail/MailerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Mail/MailerTest.php b/tests/lib/Mail/MailerTest.php
index e3995fd17be..5e8993f10ea 100644
--- a/tests/lib/Mail/MailerTest.php
+++ b/tests/lib/Mail/MailerTest.php
@@ -16,6 +16,7 @@ use OC\Mail\Mailer;
use OC\Mail\Message;
use OCP\Defaults;
use OCP\EventDispatcher\IEventDispatcher;
+use OCP\IBinaryFinder;
use OCP\IConfig;
use OCP\IL10N;
use OCP\IURLGenerator;
@@ -90,7 +91,7 @@ class MailerTest extends TestCase {
['mail_sendmailmode', 'smtp', $sendmailMode],
]);
- $path = \OC_Helper::findBinaryPath('sendmail');
+ $path = \OCP\Server::get(IBinaryFinder::class)->findBinaryPath('sendmail');
if ($path === false) {
$path = '/usr/sbin/sendmail';
}