Skip to content

Commit 246701f

Browse files
Merge pull request #14 from laravel-shift/l10-compatibility
Laravel 10.x Compatibility
2 parents a8b5178 + e51e14e commit 246701f

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ]
19-
laravel: [ 7.*, 8.*, 9.* ]
19+
laravel: [ 7.*, 8.*, 9.* , 10.*]
2020
dependency-version: [ prefer-lowest, prefer-stable ]
2121
include:
22+
- laravel: 10.*
23+
testbench: 8.*
2224
- laravel: 7.*
2325
testbench: 5.*
2426

@@ -33,6 +35,14 @@ jobs:
3335
testbench: 7.*
3436

3537
exclude:
38+
- laravel: 10.*
39+
php: 7.2
40+
- laravel: 10.*
41+
php: 7.3
42+
- laravel: 10.*
43+
php: 7.4
44+
- laravel: 10.*
45+
php: 8.0
3646
- laravel: 7.*
3747
php: 8.1
3848

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
],
1212
"require": {
1313
"php": "^7.2|^8.0",
14-
"illuminate/support": "^7.0|^8.0|^9.0",
15-
"illuminate/filesystem": "^7.0|^8.0|^9.0",
16-
"illuminate/console": "^7.0|^8.0|^9.0"
14+
"illuminate/support": "^7.0|^8.0|^9.0|^10.0",
15+
"illuminate/filesystem": "^7.0|^8.0|^9.0|^10.0",
16+
"illuminate/console": "^7.0|^8.0|^9.0|^10.0"
1717
},
1818
"require-dev": {
19-
"orchestra/testbench": "^5.0|^6.0|^7.0",
19+
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
2020
"mockery/mockery": "^1.3.3",
2121
"phpunit/phpunit": "^8.4|^9.5"
2222
},

tests/BaseTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ protected function setUp(): void
2525
// By default base_path points to the TestBench directory,
2626
// but we need it to reference our app. Adding this link
2727
// will make it transparent.
28-
exec('ln -sf ' . __DIR__ . ' ' . base_path());
28+
if (!File::exists(base_path() . '/tests/Support')) {
29+
// Support for older versions of testbench that don't have a tests directory.
30+
File::ensureDirectoryExists(base_path() . '/tests');
31+
exec('ln -sf ' . __DIR__ . '/Support ' . base_path() . '/tests/Support');
32+
}
2933
}
3034

3135
protected function tearDown(): void

0 commit comments

Comments
 (0)