diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 57b0a87..ac84d5d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,52 +14,12 @@ jobs: fail-fast: true matrix: # Minimum 7.2 support for customers on older Laravel installs. - php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3] - laravel: [6, 7, 8, 9, 10, 11] + php: [8.1, 8.2, 8.3] + laravel: [10, 11] exclude: - - php: 7.2 - laravel: 8 - - php: 7.2 - laravel: 9 - - php: 7.2 - laravel: 10 - - php: 7.2 - laravel: 11 - - php: 7.3 - laravel: 9 - - php: 7.3 - laravel: 10 - - php: 7.3 - laravel: 11 - - php: 7.4 - laravel: 9 - - php: 7.4 - laravel: 10 - - php: 7.4 - laravel: 11 - - php: 8.0 - laravel: 10 - - php: 8.0 - laravel: 11 - - php: 8.1 - laravel: 6 - - php: 8.1 - laravel: 7 - php: 8.1 laravel: 11 - - php: 8.2 - laravel: 6 - - php: 8.2 - laravel: 7 - - php: 8.3 - laravel: 6 - - php: 8.3 - laravel: 7 - - php: 8.3 - laravel: 8 - - php: 8.3 - laravel: 9 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} diff --git a/tests/Unit/VaporScheduleCommandTest.php b/tests/Unit/VaporScheduleCommandTest.php index 7008f43..1ff464b 100644 --- a/tests/Unit/VaporScheduleCommandTest.php +++ b/tests/Unit/VaporScheduleCommandTest.php @@ -38,7 +38,9 @@ public function test_scheduler_is_invoked_when_invalid_cache_is_configured() if (version_compare($this->app->version(), 10, '>=')) { $fake->shouldReceive('forget')->once()->with('illuminate:schedule:interrupt')->andReturn(true); } - if (! Str::startsWith($this->app->version(), '9')) { + if (version_compare($this->app->version(), 11, '>=')) { + Cache::shouldReceive('driver')->twice()->andReturn($fake); + } elseif(! Str::startsWith($this->app->version(), '9')) { Cache::shouldReceive('driver')->once()->andReturn($fake); } $fake->shouldNotReceive('forget')->with('vapor:schedule:lock');