Skip to content

Commit 1009431

Browse files
committed
wip
1 parent af84861 commit 1009431

File tree

2 files changed

+5
-43
lines changed

2 files changed

+5
-43
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,52 +14,12 @@ jobs:
1414
fail-fast: true
1515
matrix:
1616
# Minimum 7.2 support for customers on older Laravel installs.
17-
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
18-
laravel: [6, 7, 8, 9, 10, 11]
17+
php: [8.1, 8.2, 8.3]
18+
laravel: [10, 11]
1919

2020
exclude:
21-
- php: 7.2
22-
laravel: 8
23-
- php: 7.2
24-
laravel: 9
25-
- php: 7.2
26-
laravel: 10
27-
- php: 7.2
28-
laravel: 11
29-
- php: 7.3
30-
laravel: 9
31-
- php: 7.3
32-
laravel: 10
33-
- php: 7.3
34-
laravel: 11
35-
- php: 7.4
36-
laravel: 9
37-
- php: 7.4
38-
laravel: 10
39-
- php: 7.4
40-
laravel: 11
41-
- php: 8.0
42-
laravel: 10
43-
- php: 8.0
44-
laravel: 11
45-
- php: 8.1
46-
laravel: 6
47-
- php: 8.1
48-
laravel: 7
4921
- php: 8.1
5022
laravel: 11
51-
- php: 8.2
52-
laravel: 6
53-
- php: 8.2
54-
laravel: 7
55-
- php: 8.3
56-
laravel: 6
57-
- php: 8.3
58-
laravel: 7
59-
- php: 8.3
60-
laravel: 8
61-
- php: 8.3
62-
laravel: 9
6323

6424
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
6525

tests/Unit/VaporScheduleCommandTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ public function test_scheduler_is_invoked_when_invalid_cache_is_configured()
3838
if (version_compare($this->app->version(), 10, '>=')) {
3939
$fake->shouldReceive('forget')->once()->with('illuminate:schedule:interrupt')->andReturn(true);
4040
}
41-
if (! Str::startsWith($this->app->version(), '9')) {
41+
if (version_compare($this->app->version(), 11, '>=')) {
42+
Cache::shouldReceive('driver')->twice()->andReturn($fake);
43+
} elseif(! Str::startsWith($this->app->version(), '9')) {
4244
Cache::shouldReceive('driver')->once()->andReturn($fake);
4345
}
4446
$fake->shouldNotReceive('forget')->with('vapor:schedule:lock');

0 commit comments

Comments
 (0)