feat: use dedicated sender for accommodation related emails

This commit is contained in:
Björn Fromme
2026-08-04 09:21:00 +02:00
parent 97d98f7f12
commit dde36ccba2
4 changed files with 57 additions and 70 deletions
@@ -124,6 +124,7 @@ class AccommodationBookingServiceTest extends TestCase
->with(
self::callback(static fn (array $context) => 'https://example.com/offer/signed-link' === $context['accessLink']),
self::callback(static fn (array $options) => '[email protected]' === $options['to']
&& '[email protected]' === $options['from']
&& 'email/accommodation_booking_customer.html.twig' === $options['template']),
);
@@ -219,6 +220,7 @@ class AccommodationBookingServiceTest extends TestCase
->with(
self::anything(),
self::callback(static fn (array $options) => in_array($options['to'], ['[email protected]', '[email protected]'], true)
&& '[email protected]' === $options['from']
&& in_array($options['template'], ['email/offer_accepted.html.twig', 'email/offer_accepted_customer.html.twig'], true)),
);