diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7cfb910..bb0452e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: matrix: os: [ ubuntu-latest ] php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ] - laravel: [ 6.*, 7.*, 8.* ] + laravel: [ 6.*, 7.*, 8.*, 9.* ] dependency-version: [ prefer-lowest, prefer-stable ] exclude: - laravel: 6.* @@ -19,12 +19,20 @@ jobs: dependency-version: prefer-lowest - laravel: 8.* dependency-version: prefer-lowest - - laravel: 8.* - php: 7.2 + - laravel: 9.* + dependency-version: prefer-lowest - laravel: 6.* php: 8.1 - laravel: 7.* php: 8.1 + - laravel: 8.* + php: 7.2 + - laravel: 9.* + php: 7.2 + - laravel: 9.* + php: 7.3 + - laravel: 9.* + php: 7.4 include: - laravel: 6.* testbench: 4.* @@ -33,6 +41,9 @@ jobs: - laravel: 8.* testbench: 6.* legacy-factories: 1.* + - laravel: 9.* + testbench: 7.* + legacy-factories: 1.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} diff --git a/composer.json b/composer.json index 93096bf..291abcd 100644 --- a/composer.json +++ b/composer.json @@ -42,8 +42,8 @@ }, "require-dev": { "mockery/mockery": "^1.0", - "orchestra/database": "^3.5|^4.0|^5.0|^6.0", - "orchestra/testbench": "^3.5|^4.0|^5.0|^6.0", + "orchestra/database": "^3.5|^4.0|^5.0|^6.0|^7.0", + "orchestra/testbench": "^3.5|^4.0|^5.0|^6.0|^7.0", "phpunit/phpunit": "^7.5|^8.0|^9.0" }, "autoload": { diff --git a/tests/Unit/Events/ModelWasBannedTest.php b/tests/Unit/Events/ModelWasBannedTest.php index ca8a5bc..1204878 100644 --- a/tests/Unit/Events/ModelWasBannedTest.php +++ b/tests/Unit/Events/ModelWasBannedTest.php @@ -16,9 +16,12 @@ use Cog\Laravel\Ban\Events\ModelWasBanned; use Cog\Tests\Laravel\Ban\Stubs\Models\User; use Cog\Tests\Laravel\Ban\TestCase; +use Illuminate\Foundation\Testing\Concerns\MocksApplicationServices; class ModelWasBannedTest extends TestCase { + use MocksApplicationServices; + /** @test */ public function it_can_fire_event_on_helper_call(): void { diff --git a/tests/Unit/Events/ModelWasUnbannedTest.php b/tests/Unit/Events/ModelWasUnbannedTest.php index 130391b..3dff564 100644 --- a/tests/Unit/Events/ModelWasUnbannedTest.php +++ b/tests/Unit/Events/ModelWasUnbannedTest.php @@ -16,9 +16,12 @@ use Cog\Laravel\Ban\Events\ModelWasUnbanned; use Cog\Laravel\Ban\Models\Ban; use Cog\Tests\Laravel\Ban\TestCase; +use Illuminate\Foundation\Testing\Concerns\MocksApplicationServices; class ModelWasUnbannedTest extends TestCase { + use MocksApplicationServices; + /** @test */ public function it_can_fire_event_on_helper_call(): void {