Skip to content

[12.x] Improve Testing Mailable Content section #10617

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

Merged

Conversation

AhmedAlaa4611
Copy link
Contributor

Description

This PR improves the clarity and flow of the "Testing Mailable Content" section in the documentation by:

  • Removing the list of available assertion methods to reduce redundancy, since all relevant assertions are demonstrated directly in the example.

  • Adding examples for assertDontSeeInHtml() and assertDontSeeInText() to show how to test that specific content does not appear in the mailable.

  • Removing a duplicated example of assertSeeInHtml() to avoid repetition.

  • Moving the explanatory paragraph ("As you might expect...") after the code example for a more natural and logical reading flow.

These changes help make the section more focused and instructional.


Rework of: #10615 and sorry for split up the tabs.

@taylorotwell taylorotwell merged commit 2fc3ac7 into laravel:12.x Jul 15, 2025
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