Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a82ba8c

Browse files
author
Valentin Prugnaud
committed
Merge branch 'develop'
2 parents 8a8e0e4 + 96a6cc3 commit a82ba8c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎src/Mailtrap.php‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,19 @@ public function seeInEmailHtmlBody($expected)
252252
$this->assertContains($expected, $email['html_body'], 'Email body contains HTML');
253253
}
254254

255+
/**
256+
* Look for a string in the most recent email subject.
257+
*
258+
* @param string $expected
259+
*
260+
* @return mixed
261+
*/
262+
public function seeInEmailSubject($expected)
263+
{
264+
$email = $this->fetchLastMessage();
265+
$this->assertContains($expected, $email['subject'], 'Email subject contains text');
266+
}
267+
255268
/**
256269
* Look for an attachment on the most recent email.
257270
*

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /