Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions mail.md
Original file line number Diff line number Diff line change
Expand Up @@ -1262,9 +1262,6 @@ test('orders can be shipped', function () {
// Assert a mailable was not sent...
Mail::assertNotSent(AnotherMailable::class);

// Assert a mailable was sent twice...
Mail::assertSentTimes(OrderShipped::class, 2);

// Assert 3 total mailables were sent...
Mail::assertSentCount(3);
});
Expand Down Expand Up @@ -1305,9 +1302,6 @@ class ExampleTest extends TestCase
// Assert a mailable was not sent...
Mail::assertNotSent(AnotherMailable::class);

// Assert a mailable was sent twice...
Mail::assertSentTimes(OrderShipped::class, 2);

// Assert 3 total mailables were sent...
Mail::assertSentCount(3);
}
Expand Down Expand Up @@ -1341,6 +1335,7 @@ Mail::assertSent(OrderShipped::class, function (OrderShipped $mail) use ($user)
$mail->hasReplyTo('...') &&
$mail->hasFrom('...') &&
$mail->hasSubject('...') &&
$mail->hasMetadata('order_id', $mail->order->id) &&
$mail->usesMailer('ses');
});
```
Expand Down