Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Nov 6, 2024
1 parent af84861 commit 1009431
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 43 deletions.
44 changes: 2 additions & 42 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/VaporScheduleCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1009431

Please sign in to comment.