File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public function it_can_retry_all_jobs()
25
25
public function making_sure_the_chunks_work ()
26
26
{
27
27
$ failedJobs = factory (FailedJob::class, 75 )->create ();
28
+ $ this ->assertEquals (75 , FailedJob::count ());
28
29
29
30
Artisan::call ('queue:failed:batch-retry ' );
30
31
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ public function setUp(): void
14
14
$ this ->loadMigrationsFrom (__DIR__ .'/database/migrations ' );
15
15
}
16
16
17
+ protected function defineEnvironment ($ app )
18
+ {
19
+ $ app ['config ' ]->set ('queue.default ' , 'database ' );
20
+ $ app ['config ' ]->set ('queue.failed.driver ' , 'database ' );
21
+ }
22
+
17
23
protected function getPackageProviders ($ app )
18
24
{
19
25
return [BatchRetryServiceProvider::class];
Original file line number Diff line number Diff line change 7
7
'connection ' => 'database ' ,
8
8
'queue ' => 'default ' ,
9
9
'payload ' => [
10
- 'displayName ' => 'App\Jobs\SomeJob ' ,
10
+ 'displayName ' => 'App \\ Jobs \ \SomeJob ' ,
11
11
],
12
12
'exception ' => 'something ' ,
13
13
];
You can’t perform that action at this time.
0 commit comments