Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Show specific error message when subject not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Feb 10, 2018
1 parent 20272f0 commit 9a8c244
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Testing/InteractsWithMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ protected function seeInSubjects($subjects)
$subjects = (array) $subjects;

foreach ($subjects as $subject) {
$this->assertTrue(in_array($subject, $this->getMailer()->subjects()->all()));
$this->assertTrue(
in_array($subject, $this->getMailer()->subjects()->all()),
"Subject not found: `{$subject}`"
);
}
}

Expand Down

0 comments on commit 9a8c244

Please sign in to comment.