Skip to content

Commit 2a6c142

Browse files
authored
Laravel 11 test (#1551)
1 parent ab0b9e1 commit 2a6c142

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
php: [8.3, 8.2, 8.1, 8.0]
24-
laravel: [^10, ^9]
24+
laravel: [^11, ^10, ^9]
2525
dependency-version: [prefer-stable]
2626
exclude:
2727
- laravel: ^10

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"require-dev": {
2121
"mockery/mockery": "^1.3.3",
2222
"orchestra/testbench-dusk": "^5|^6|^7|^8|^9",
23-
"phpunit/phpunit": "^8.5.30|^9.0",
23+
"phpunit/phpunit": "^9.6|^10.5",
2424
"squizlabs/php_codesniffer": "^3.5"
2525
},
2626
"autoload": {

tests/DataCollector/JobsCollectorTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ protected function createJobsTable()
6363
{
6464
public function up()
6565
{
66+
if (Schema::hasTable('jobs')) {
67+
return;
68+
}
69+
6670
Schema::create('jobs', function (Blueprint $table) {
6771
$table->bigIncrements('id');
6872
$table->string('queue')->index();

0 commit comments

Comments
 (0)