zenstruck/mailer-test
Opinionated helpers to test emails sent with symfony/mailer. Use InteractsWithMailer in KernelTestCase/WebTestCase for fluent assertions like assertNoEmailSent, assertSentEmailCount, and inspect messages with TestEmail (subject, recipients, body, attachments).
002462f feat: allow symfony 8 (#32) by @Chris53897, @Chris8934, @kbond 91755bf chore: update PHPStan 1 = 2 (#31) by @Chris53897, @Chris8934 ab86edd doc: add screencast link by @kbond 5f26ef2 minor: fix test deprecations (#30) by @kbond
8d75e40 fix: PHPUnit deprecation (#29) by @norkunas a7bd13d chore: fix ci deprecations (#28) by @Chris53897, @Chris8934
3177e7d fix: allow 7.0+ for symfony/mailer (#27) by @kbond
93306fb feat: Symfony 7 support (#26) by @kbond
Stable release!
d316726 [feature] allow Symfony 6 (#7) by @kbond
bedd52a [minor] add static return type for TestEmail methods by @kbond f64e7f2 [docs] document new features (#13) by @kbond 58d2f7e [feature] add more SentEmails collection filters (#13) by @kbond edc7922 [feature] add TestEmail::dump()/dd() (#13) by @kbond 8a8b0da [feature] add TestEmail::assertSubjectContains() (#13) by @kbond 20d2635 [feature] add SentEmails collection methods/filters (#13) by @kbond 59b0ce5 [BC BREAK] remove TestMailer::sentTestEmails() (#13) by @kbond 1ad786e [feature][BC BREAK] SentEmails is now a collection of TestEmail's (#13) by @kbond 48e37f8 [feature] allow Email/no typehint assertEmailSentTo callback (#13) by @kbond 379624a [ci] use reusable workflows (#12) by @kbond
2399e87 [feature][BC BREAK] emails persisted between reboots (closes #5) (#9) by @kbond 5892976 [feature] add TestEmail tag/metadata access/assertions (#10) by @kbond 14a87b8 [minor] use zenstruck/assert for assertions instead of phpunit (#6) by @kbond 8264478 [bug] profiler is only required in Symfony 5.2 (#8) by @kbond 660d812 [minor] adjust CI matrix (#8) by @kbond 4b13884 [minor] disable codecov pr annotations by @kbond eb20fea [minor] add Symfony 5.3/5.4-dev to CI test matrix by @kbond 8d76db6 [minor] update php-cs-fixer to v3 by @kbond 8ddb5a0 [minor] lock php-cs-fixer version in ci (bug) by @kbond ce39770 [minor] adjust codecov threshold by @kbond bd5eeb2 [minor] use SHELL_VERBOSITY to hide logs by @kbond bb025c9 [minor] Fix package name in README (#2) by @OskarStark 5550e61 [minor] fix test by @kbond
Initial pre-release.
How can I help you explore Laravel packages today?