Skip to content

Commit

Permalink
Add Laravel 9 tests (#83)
Browse files Browse the repository at this point in the history
* Add Laravel 9 tests
  • Loading branch information
antonkomarev committed Feb 5, 2022
1 parent 65b6ec5 commit 8b35579
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/tests.yml
Expand Up @@ -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.*
Expand All @@ -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.*
Expand All @@ -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 }}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Events/ModelWasBannedTest.php
Expand Up @@ -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
{
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Events/ModelWasUnbannedTest.php
Expand Up @@ -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
{
Expand Down

0 comments on commit 8b35579

Please sign in to comment.