Skip to content

Commit 669a3a6

Browse files
authored
Call renderForAssertions in assertHasSubject (#47728)
1 parent 87b9c99 commit 669a3a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Mail/Mailable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,8 @@ private function formatAssertionRecipient($address, $name = null)
13301330
*/
13311331
public function assertHasSubject($subject)
13321332
{
1333+
$this->renderForAssertions();
1334+
13331335
PHPUnit::assertTrue(
13341336
$this->hasSubject($subject),
13351337
"Did not see expected text [{$subject}] in email subject."

0 commit comments

Comments
 (0)