From 1cd470d702d6f01d57f1a0ffde4595dfc697f9f9 Mon Sep 17 00:00:00 2001 From: Florian Siegmund Date: Tue, 27 Jan 2026 13:41:05 +0100 Subject: [PATCH] Fix trait name --- docs/en/core-libraries/email.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/core-libraries/email.md b/docs/en/core-libraries/email.md index d1fb994ee2..96b26196d8 100644 --- a/docs/en/core-libraries/email.md +++ b/docs/en/core-libraries/email.md @@ -609,7 +609,7 @@ using `Message::setBodyText()` and `Message::setBodyHtml()` methods. ## Testing Mailers To test mailers, add `Cake\TestSuite\EmailTrait` to your test case. -The `MailerTrait` uses PHPUnit hooks to replace your application's email transports +The `EmailTrait` uses PHPUnit hooks to replace your application's email transports with a proxy that intercepts email messages and allows you to do assertions on the mail that would be delivered.