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

Commit 9a8c244

Browse files
committed
Show specific error message when subject not found.
1 parent 20272f0 commit 9a8c244

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Testing/InteractsWithMail.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ protected function seeInSubjects($subjects)
161161
$subjects = (array) $subjects;
162162

163163
foreach ($subjects as $subject) {
164-
$this->assertTrue(in_array($subject, $this->getMailer()->subjects()->all()));
164+
$this->assertTrue(
165+
in_array($subject, $this->getMailer()->subjects()->all()),
166+
"Subject not found: `{$subject}`"
167+
);
165168
}
166169
}
167170

0 commit comments

Comments
 (0)