Skip to content

Commit f3444f1

Browse files
[10.x] Document assertCount method (#9244)
* Add assertCount method * pass parameter * Update queues.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 9d140fc commit f3444f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

queues.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,9 @@ You may use the `Queue` facade's `fake` method to prevent queued jobs from actua
21352135

21362136
// Assert that a Closure was pushed to the queue...
21372137
Queue::assertClosurePushed();
2138+
2139+
// Assert the total number of jobs that were pushed...
2140+
Queue::assertCount(3);
21382141
}
21392142
}
21402143

0 commit comments

Comments
 (0)