Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertions for counting outgoing mailables #47655

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

jasonmccreary
Copy link
Contributor

Currently you may only assert a certain type of mailable was sent a number of times, or none at all. There is no way to assert the total number of mailables sent, queued, or both. Having these allow you to easily assert no stray mailables are outgoing.

This pull requests includes assertSentCount, assertQueuedCount, and assertOutgoingCount. These are complimentary to assertions like assertNothingOutgoing, and similar to assertDatabaseCount.

@jasonmccreary
Copy link
Contributor Author

Not sure about the failures. Seems other recent PRs are failing for the same reason...

@taylorotwell taylorotwell merged commit 07c7850 into laravel:10.x Jul 4, 2023
15 checks passed
@jasonmccreary jasonmccreary deleted the assert-mailable-counts branch July 11, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants