Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions mail.md
Original file line number Diff line number Diff line change
Expand Up @@ -1291,6 +1291,9 @@ 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 @@ -1331,6 +1334,9 @@ 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
3 changes: 3 additions & 0 deletions notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,9 @@ test('orders can be shipped', function () {
[$user], AnotherNotification::class
);

// Assert a notification was sent twice...
Notification::assertSentTimes(WeeklyReminder::class, 2);

// Assert that a given number of notifications were sent...
Notification::assertCount(3);
});
Expand Down