File tree 5 files changed +15
-13
lines changed
5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 9
9
strategy :
10
10
fail-fast : true
11
11
matrix :
12
- php : [7.4]
13
- laravel : [7.*, 8.*]
14
- include :
15
- - laravel : 8.*
16
- testbench : 6.*
17
- - laravel : 7.*
18
- testbench : 7.*
12
+ php : [7.4, 8.0]
13
+ laravel : [8.*]
19
14
20
15
name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
21
16
42
37
coverage : none
43
38
44
39
- name : Install dependencies
45
- run : |
46
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
47
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
40
+ run : composer install
48
41
49
42
- name : Execute tests
50
43
run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 16
16
}
17
17
],
18
18
"require" : {
19
- "php" : " ^7.1"
19
+ "php" : " ^7.1 || ^8.0 "
20
20
},
21
21
"require-dev" : {
22
- "orchestra/testbench" : " ^4.0" ,
22
+ "orchestra/testbench" : " ^6.0" ,
23
+ "laravel/framework" : " ^8.0" ,
24
+ "laravel/legacy-factories" : " ^1.0" ,
23
25
"phpunit/phpunit" : " ^8.0"
24
26
},
25
27
"autoload" : {
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