@@ -18,6 +18,7 @@ Assert that the batch contains a job of the given type. You can also pass an int
18
18
19
19
``` php
20
20
use Circle33\LaravelBusFluentable\Bus as BusFacade;
21
+ use Circle33\LaravelBusFluentable\FluentPendingBatch;
21
22
22
23
Bus::fake();
23
24
@@ -26,7 +27,7 @@ Bus::batch([
26
27
new BJob,
27
28
])->dispatch();
28
29
29
- BusFacade::assertPendingBatched(fn (PendingBatchFake $batch) =>
30
+ BusFacade::assertPendingBatched(fn (FluentPendingBatch $batch) =>
30
31
$batch->has(2)
31
32
->has(AJob::class, [1, 2])
32
33
);
@@ -40,14 +41,15 @@ Assert that the batch does not contain a job of the given type.
40
41
41
42
``` php
42
43
use Circle33\LaravelBusFluentable\Bus as BusFacade;
44
+ use Circle33\LaravelBusFluentable\FluentPendingBatch;
43
45
44
46
Bus::fake();
45
47
46
48
Bus::batch([
47
49
new BJob,
48
50
])->dispatch();
49
51
50
- BusFacade::assertPendingBatched(fn (PendingBatchFake $batch) =>
52
+ BusFacade::assertPendingBatched(fn (FluentPendingBatch $batch) =>
51
53
$batch->missing(AJob::class)
52
54
);
53
55
```
@@ -60,6 +62,7 @@ Assert that the batch contains all of the given jobs.
60
62
61
63
``` php
62
64
use Circle33\LaravelBusFluentable\Bus as BusFacade;
65
+ use Circle33\LaravelBusFluentable\FluentPendingBatch;
63
66
64
67
Bus::fake();
65
68
@@ -68,7 +71,7 @@ Bus::batch([
68
71
new BJob,
69
72
])->dispatch();
70
73
71
- BusFacade::assertPendingBatched(fn (PendingBatchFake $batch) =>
74
+ BusFacade::assertPendingBatched(fn (FluentPendingBatch $batch) =>
72
75
$batch->hasAll([AJob::class, BJob::class])
73
76
);
74
77
```
@@ -81,6 +84,7 @@ Assert that the batch does not contain any of the given jobs.
81
84
82
85
``` php
83
86
use Circle33\LaravelBusFluentable\Bus as BusFacade;
87
+ use Circle33\LaravelBusFluentable\FluentPendingBatch;
84
88
85
89
Bus::fake();
86
90
@@ -89,7 +93,7 @@ Bus::batch([
89
93
new BJob,
90
94
])->dispatch();
91
95
92
- BusFacade::assertPendingBatched(fn (PendingBatchFake $batch) =>
96
+ BusFacade::assertPendingBatched(fn (FluentPendingBatch $batch) =>
93
97
$batch->missingAll([CJob::class, DJob::class])
94
98
);
95
99
```
@@ -102,6 +106,7 @@ Assert that the batch contains any of the given jobs.
102
106
103
107
``` php
104
108
use Circle33\LaravelBusFluentable\Bus as BusFacade;
109
+ use Circle33\LaravelBusFluentable\FluentPendingBatch;
105
110
106
111
Bus::fake();
107
112
@@ -110,7 +115,7 @@ Bus::batch([
110
115
new BJob,
111
116
])->dispatch();
112
117
113
- BusFacade::assertPendingBatched(fn (PendingBatchFake $batch) =>
118
+ BusFacade::assertPendingBatched(fn (FluentPendingBatch $batch) =>
114
119
$batch->hasAny(AJob::class, CJob::class)
115
120
);
116
121
```
@@ -123,6 +128,7 @@ Assert that the first job in the batch matches the given callback.
123
128
124
129
``` php
125
130
use Circle33\LaravelBusFluentable\Bus as BusFacade;
131
+ use Circle33\LaravelBusFluentable\FluentPendingBatch;
126
132
127
133
Bus::fake();
128
134
@@ -134,7 +140,7 @@ Bus::batch([
134
140
new CJob,
135
141
])->dispatch();
136
142
137
- BusFacade::assertPendingBatched(fn (PendingBatchFake $batch) =>
143
+ BusFacade::assertPendingBatched(fn (FluentPendingBatch $batch) =>
138
144
$batch->first(fn (PendingBatchFake $firstBatch) =>
139
145
$firstBatch->has(AJob::class, [1, 2])
140
146
->has(BJob::class)
@@ -150,6 +156,7 @@ Assert that the nth job in the batch matches the given callback or type and para
150
156
151
157
``` php
152
158
use Circle33\LaravelBusFluentable\Bus as BusFacade;
159
+ use Circle33\LaravelBusFluentable\FluentPendingBatch;
153
160
154
161
Bus::fake();
155
162
@@ -161,8 +168,8 @@ Bus::batch([
161
168
new CJob::class(1)
162
169
])->dispatch();
163
170
164
- BusFacade::assertPendingBatched(fn (PendingBatchFake $batch) =>
165
- $batch->nth(0, fn (PendingBatchFake $batch) =>
171
+ BusFacade::assertPendingBatched(fn (FluentPendingBatch $batch) =>
172
+ $batch->nth(0, fn (FluentPendingBatch $batch) =>
166
173
$batch->has(AJob::class, [1, 2])
167
174
->has(BJob::class)
168
175
)->nth(1, CJob::class, [1])
@@ -177,6 +184,7 @@ Assert that the batch contains exactly the given jobs with the specified paramet
177
184
178
185
``` php
179
186
use Circle33\LaravelBusFluentable\Bus as BusFacade;
187
+ use Circle33\LaravelBusFluentable\FluentPendingBatch;
180
188
181
189
Bus::fake();
182
190
@@ -188,7 +196,7 @@ Bus::batch([
188
196
new CJob::class(1)
189
197
])->dispatch();
190
198
191
- BusFacade::assertPendingBatched(fn (PendingBatchFake $batch) =>
199
+ BusFacade::assertPendingBatched(fn (FluentPendingBatch $batch) =>
192
200
$batch->equal([
193
201
[
194
202
AJob::class => [1, 2],
@@ -207,6 +215,7 @@ Assert that the batch has unexpected jobs beyond those checked.
207
215
208
216
``` php
209
217
use Circle33\LaravelBusFluentable\Bus as BusFacade;
218
+ use Circle33\LaravelBusFluentable\FluentPendingBatch;
210
219
211
220
Bus::fake();
212
221
@@ -216,7 +225,7 @@ Bus::batch([
216
225
new CJob::class(1)
217
226
])->dispatch();
218
227
219
- BusFacade::assertPendingBatched(fn (PendingBatchFake $batch) =>
228
+ BusFacade::assertPendingBatched(fn (FluentPendingBatch $batch) =>
220
229
$batch->has(AJob::class, [1, 2])
221
230
->has(BJob::class)
222
231
->etc()
0 commit comments