CluPilotCloud/tests/Feature/Mail
nexxo a12ab148b3 Close the data-loss paths the review found in the mailbox takeover
The vault's mail.password row is no longer deleted by this migration at
all, in either direction: deleting it unconditionally destroyed a real
password whenever MAIL_USERNAME was empty (nowhere to carry it to), and
even on a successful carry-over a later rollback had nothing left to fall
back to. Reproduced both against real MariaDB, along with a migrations-
table drift that crashed a retry on the mailboxes.key unique constraint —
fixed with Mailbox::firstOrNew() and a transaction around each direction.
down() now goes through the new Settings::forget() instead of a raw
delete, so it stops leaving the settings cache holding what it just
removed. A skipped .env password (SECRETS_KEY still unset) now prints an
operator-visible line instead of migrating clean and failing silently
later. Host/port that resolve to config/mail.php's own placeholder
defaults are treated as unset rather than as a real relay.
2026-07-28 01:15:50 +02:00
..
MailboxModelTest.php Move the one SMTP account into the mailbox table it outgrew 2026-07-28 00:24:54 +02:00
MailboxResolverTest.php Move the one SMTP account into the mailbox table it outgrew 2026-07-28 00:24:54 +02:00
MailboxSeedMigrationTest.php Close the data-loss paths the review found in the mailbox takeover 2026-07-28 01:15:50 +02:00
MailboxTakeoverTest.php Close the data-loss paths the review found in the mailbox takeover 2026-07-28 01:15:50 +02:00
MailboxTransportTest.php Move the one SMTP account into the mailbox table it outgrew 2026-07-28 00:24:54 +02:00
SenderAddressTest.php Move the one SMTP account into the mailbox table it outgrew 2026-07-28 00:24:54 +02:00