From f3a3d09f7f2d81d6d5e7ac78981c1a58769237c6 Mon Sep 17 00:00:00 2001 From: Kevin Bui Date: Mon, 15 Dec 2025 08:48:38 +1100 Subject: [PATCH] Add the assertOutgoingCount method. --- mail.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mail.md b/mail.md index 8a5c1f4d8a..e267a31124 100644 --- a/mail.md +++ b/mail.md @@ -1323,6 +1323,12 @@ Mail::assertNothingQueued(); Mail::assertQueuedCount(3); ``` +You can also assert the total number of mailables that have been sent or queued using the `assertOutgoingCount` method: + +```php +Mail::assertOutgoingCount(3); +``` + You may pass a closure to the `assertSent`, `assertNotSent`, `assertQueued`, or `assertNotQueued` methods in order to assert that a mailable was sent that passes a given "truth test". If at least one mailable was sent that passes the given truth test then the assertion will be successful: ```php