diff --git a/mail.md b/mail.md index 45adc652b5..6789aa3721 100644 --- a/mail.md +++ b/mail.md @@ -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); }); @@ -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); } @@ -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'); }); ```