diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-16 18:18:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 18:18:14 +0200 |
commit | ede0c26b78722f07ea4b672ff7c00f9723e0454e (patch) | |
tree | 238ce2f166036f21a1af1cca01a9e878162a2e91 /tests | |
parent | dde0b48c9375ed4f5fd7bac3b03e2b1c75ce9926 (diff) | |
parent | 87aa1267a84cef6f8d6bd43956fab2787c80627c (diff) | |
download | nextcloud-server-ede0c26b78722f07ea4b672ff7c00f9723e0454e.tar.gz nextcloud-server-ede0c26b78722f07ea4b672ff7c00f9723e0454e.zip |
Merge pull request #46480 from nextcloud/fix/mailer-binaryfinder-fallback
fix(Mailer): Fix sendmail binary fallback
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Mail/MailerTest.php | 3 |
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'; } |