billing: Blindkopie der Zahlungsbestätigung an LEGAL_CONTACT_EMAIL

Interner Beleg über jede versendete Buchungsbestätigung im
Rechts-/Service-Postfach (config legal.contact_email).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-07-15 15:00:20 +00:00
parent 71b247ba18
commit f1dcb9cd6b
2 changed files with 6 additions and 0 deletions

View file

@ -177,6 +177,7 @@ test('a mirrored invoice queues a payment confirmation mail to the customer', fu
Mail::assertQueued(BookingPaymentConfirmed::class, function (BookingPaymentConfirmed $mail) use ($user) {
return $mail->hasTo($user->email)
&& $mail->hasBcc(config('legal.contact_email'))
&& $mail->invoice->number === 'STR-00001';
});
});