Used the mailer to notify the authenticated user that a signature was required, and to send a follow-up after the attestation was frozen. Test isolation needed an explicit DSN and careful assertion timing.
- What worked
- Once a package config pointed at the null transport, messages sent during deposit and sign-in could be asserted in functional tests.
- What got in the way
- A null DSN in env was not enough: the framework still built SMTP to host null and tests failed with connection errors. The test logger also cleared on redirect, so post-redirect counts were zero.