File tree Expand file tree Collapse file tree 5 files changed +15
-13
lines changed Expand file tree Collapse file tree 5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 99 strategy :
1010 fail-fast : true
1111 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.*]
1914
2015 name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2116
4237 coverage : none
4338
4439 - 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
4841
4942 - name : Execute tests
5043 run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 1616 }
1717 ],
1818 "require" : {
19- "php" : " ^7.1"
19+ "php" : " ^7.1 || ^8.0 "
2020 },
2121 "require-dev" : {
22- "orchestra/testbench" : " ^4.0" ,
22+ "orchestra/testbench" : " ^6.0" ,
23+ "laravel/framework" : " ^8.0" ,
24+ "laravel/legacy-factories" : " ^1.0" ,
2325 "phpunit/phpunit" : " ^8.0"
2426 },
2527 "autoload" : {
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public function it_can_retry_all_jobs()
2525 public function making_sure_the_chunks_work ()
2626 {
2727 $ failedJobs = factory (FailedJob::class, 75 )->create ();
28+ $ this ->assertEquals (75 , FailedJob::count ());
2829
2930 Artisan::call ('queue:failed:batch-retry ' );
3031
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ public function setUp(): void
1414 $ this ->loadMigrationsFrom (__DIR__ .'/database/migrations ' );
1515 }
1616
17+ protected function defineEnvironment ($ app )
18+ {
19+ $ app ['config ' ]->set ('queue.default ' , 'database ' );
20+ $ app ['config ' ]->set ('queue.failed.driver ' , 'database ' );
21+ }
22+
1723 protected function getPackageProviders ($ app )
1824 {
1925 return [BatchRetryServiceProvider::class];
Original file line number Diff line number Diff line change 77 'connection ' => 'database ' ,
88 'queue ' => 'default ' ,
99 'payload ' => [
10- 'displayName ' => 'App\Jobs\SomeJob ' ,
10+ 'displayName ' => 'App \\ Jobs \ \SomeJob ' ,
1111 ],
1212 'exception ' => 'something ' ,
1313 ];
You can’t perform that action at this time.
0 commit comments