test(settings): add missing logger parameter to MailSettingsController test

Signed-off-by: Abhinav Ohri <abhinavohri13@gmail.com>
pull/56931/head
Abhinav Ohri 2025-12-09 18:34:29 +07:00
parent 980c243132
commit f78e2a33ea
1 changed files with 4 additions and 0 deletions

@ -19,6 +19,7 @@ use OCP\IUserSession;
use OCP\Mail\IEMailTemplate;
use OCP\Mail\IMailer;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;
/**
* @package Tests\Settings\Controller
@ -29,6 +30,7 @@ class MailSettingsControllerTest extends \Test\TestCase {
private IMailer&MockObject $mailer;
private IL10N&MockObject $l;
private IURLGenerator&MockObject $urlGenerator;
private LoggerInterface&MockObject $logger;
private MailSettingsController $mailController;
protected function setUp(): void {
@ -39,6 +41,7 @@ class MailSettingsControllerTest extends \Test\TestCase {
$this->userSession = $this->createMock(IUserSession::class);
$this->mailer = $this->createMock(IMailer::class);
$this->urlGenerator = $this->createMock(IURLGenerator::class);
$this->logger = $this->createMock(LoggerInterface::class);
/** @var IRequest&MockObject $request */
$request = $this->createMock(IRequest::class);
$this->mailController = new MailSettingsController(
@ -49,6 +52,7 @@ class MailSettingsControllerTest extends \Test\TestCase {
$this->userSession,
$this->urlGenerator,
$this->mailer,
$this->logger,
);
}