aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-07-12 18:59:45 -0400
committerRobin Appelman <robin@icewind.nl>2024-09-16 15:20:29 +0200
commit87aa1267a84cef6f8d6bd43956fab2787c80627c (patch)
tree75fbb9d77784d3407123b18e030dd0d6dca6e80a /tests
parentcfed24cb0254caf570b2a520979a83435a677cc8 (diff)
downloadnextcloud-server-87aa1267a84cef6f8d6bd43956fab2787c80627c.tar.gz
nextcloud-server-87aa1267a84cef6f8d6bd43956fab2787c80627c.zip
fix(Mailer): Fix sendmail binary fallbackfix/mailer-binaryfinder-fallback
feat: add debug logging to sendmail binary finder 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 9f37b776f17..f215e385e3f 100644
--- a/tests/lib/Mail/MailerTest.php
+++ b/tests/lib/Mail/MailerTest.php
@@ -12,6 +12,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;
@@ -86,7 +87,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';
}