1
0

fix(helpdesk): inject appTitle/appUrl into HandoverNotificationService to avoid DB calls in tests

This commit is contained in:
aminovfariz
2026-06-05 14:10:13 +02:00
parent b8fc55bcc2
commit 3f08f6189e
4 changed files with 31 additions and 8 deletions

View File

@@ -11,7 +11,9 @@ class HandoverNotificationServiceTest extends TestCase
private function createNotificationService(?MailService $mailService = null): HandoverNotificationService
{
return new HandoverNotificationService(
$mailService ?? $this->createMock(MailService::class)
$mailService ?? $this->createMock(MailService::class),
'TestApp',
'http://localhost',
);
}