Skip to content

Commit

Permalink
document assertNotOutgoing
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 17, 2021
1 parent bfd7c4b commit fed704c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,14 @@ When calling the `Mail` facade's assertion methods, the mailable instance accept
$mail->hasBcc('...');
});

You may have noticed that there are two methods for asserting that mail was not sent: `assertNotSent` and `assertNotQueued`. Sometimes you may wish to assert that no mail was sent **or** queued. To accomplish this, you may use the `assertNothingOutgoing` and `assertNotOutgoing` methods:

Mail::assertNothingOutgoing();

Mail::assertNotOutgoing(function (OrderShipped $mail) use ($order) {
return $mail->order->id === $order->id;
});

<a name="notification-fake"></a>
## Notification Fake

Expand Down

0 comments on commit fed704c

Please sign in to comment.