Skip to content

Commit da854c6

Browse files
authored
Add the assertOutgoingCount method. (#10951)
1 parent 1c04f43 commit da854c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mail.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,12 @@ Mail::assertNothingQueued();
13231323
Mail::assertQueuedCount(3);
13241324
```
13251325

1326+
You can also assert the total number of mailables that have been sent or queued using the `assertOutgoingCount` method:
1327+
1328+
```php
1329+
Mail::assertOutgoingCount(3);
1330+
```
1331+
13261332
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:
13271333

13281334
```php

0 commit comments

Comments
 (0)