Skip to content

Commit

Permalink
Call renderForAssertions in assertHasSubject (#47728)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrig authored Jul 12, 2023
1 parent 87b9c99 commit 669a3a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Mail/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,8 @@ private function formatAssertionRecipient($address, $name = null)
*/
public function assertHasSubject($subject)
{
$this->renderForAssertions();

PHPUnit::assertTrue(
$this->hasSubject($subject),
"Did not see expected text [{$subject}] in email subject."
Expand Down

0 comments on commit 669a3a6

Please sign in to comment.