From 104b888ce4d4eaa8206377a50cb100d0b8e60ba3 Mon Sep 17 00:00:00 2001 From: Oliver Kaufmann Date: Tue, 16 Feb 2021 10:19:03 +0100 Subject: [PATCH 1/3] fix tests --- tests/Feature/TeamworkTeamInviteTraitTest.php | 2 +- tests/Feature/TeamworkTest.php | 2 +- tests/Feature/UsedByTeamsTraitTest.php | 4 ++-- tests/Feature/UserHasTeamsTraitTest.php | 2 +- tests/Feature/UserNotInTeamExceptionTest.php | 2 +- tests/{models => Support}/Task.php | 2 +- tests/{models => Support}/User.php | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) rename tests/{models => Support}/Task.php (76%) rename tests/{models => Support}/User.php (78%) diff --git a/tests/Feature/TeamworkTeamInviteTraitTest.php b/tests/Feature/TeamworkTeamInviteTraitTest.php index 4ad2e24..aa95938 100644 --- a/tests/Feature/TeamworkTeamInviteTraitTest.php +++ b/tests/Feature/TeamworkTeamInviteTraitTest.php @@ -6,8 +6,8 @@ use Mockery as m; use Mpociot\Teamwork\TeamInvite; use Mpociot\Teamwork\TeamworkTeam; +use Mpociot\Teamwork\Tests\Support\User; use Mpociot\Teamwork\Tests\TestCase; -use Mpociot\Teamwork\Tests\User; class TeamworkTeamInviteTraitTest extends TestCase { diff --git a/tests/Feature/TeamworkTest.php b/tests/Feature/TeamworkTest.php index 303aeb8..e2d7b79 100644 --- a/tests/Feature/TeamworkTest.php +++ b/tests/Feature/TeamworkTest.php @@ -7,8 +7,8 @@ use Mockery as m; use Mpociot\Teamwork\TeamInvite; use Mpociot\Teamwork\TeamworkTeam; +use Mpociot\Teamwork\Tests\Support\User; use Mpociot\Teamwork\Tests\TestCase; -use Mpociot\Teamwork\Tests\User; class TeamworkTest extends TestCase { diff --git a/tests/Feature/UsedByTeamsTraitTest.php b/tests/Feature/UsedByTeamsTraitTest.php index fa722fc..38fa10e 100644 --- a/tests/Feature/UsedByTeamsTraitTest.php +++ b/tests/Feature/UsedByTeamsTraitTest.php @@ -3,9 +3,9 @@ namespace Mpociot\Teamwork\Tests\Feature; use Mpociot\Teamwork\TeamworkTeam; -use Mpociot\Teamwork\Tests\Task; +use Mpociot\Teamwork\Tests\Support\Task; +use Mpociot\Teamwork\Tests\Support\User; use Mpociot\Teamwork\Tests\TestCase; -use Mpociot\Teamwork\Tests\User; class UsedByTeamsTraitTest extends TestCase { diff --git a/tests/Feature/UserHasTeamsTraitTest.php b/tests/Feature/UserHasTeamsTraitTest.php index 6206e50..416e5b8 100644 --- a/tests/Feature/UserHasTeamsTraitTest.php +++ b/tests/Feature/UserHasTeamsTraitTest.php @@ -4,8 +4,8 @@ use Event; use Mpociot\Teamwork\TeamworkTeam; +use Mpociot\Teamwork\Tests\Support\User; use Mpociot\Teamwork\Tests\TestCase; -use Mpociot\Teamwork\Tests\User; class UserHasTeamsTraitTest extends TestCase { diff --git a/tests/Feature/UserNotInTeamExceptionTest.php b/tests/Feature/UserNotInTeamExceptionTest.php index c1cebe5..6eb7080 100644 --- a/tests/Feature/UserNotInTeamExceptionTest.php +++ b/tests/Feature/UserNotInTeamExceptionTest.php @@ -3,8 +3,8 @@ namespace Mpociot\Teamwork\Tests\Feature; use Mockery as m; +use Mpociot\Teamwork\Tests\Support\User; use Mpociot\Teamwork\Tests\TestCase; -use Mpociot\Teamwork\Tests\User; class UserNotInTeamExceptionTest extends TestCase { diff --git a/tests/models/Task.php b/tests/Support/Task.php similarity index 76% rename from tests/models/Task.php rename to tests/Support/Task.php index 2b5a452..834d13b 100644 --- a/tests/models/Task.php +++ b/tests/Support/Task.php @@ -1,6 +1,6 @@ Date: Tue, 16 Feb 2021 10:21:43 +0100 Subject: [PATCH 2/3] run tests for php 8 --- .github/workflows/run-tests.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b7cf42e..69adc26 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,7 +9,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: [7.4, 7.3, 7.2] + php: [8.0, 7.4, 7.3, 7.2] laravel: [8.*, 7.*, 6.*] dependency-version: [prefer-lowest, prefer-stable] include: diff --git a/composer.json b/composer.json index 9ebf4d2..0420378 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": "^7.2.5", + "php": "^7.2.5|^8.0", "laravel/framework": "^6.0|^7.0|^8.0" }, "require-dev": { From cf10151972ef9c393182eef0e88008572bfb7149 Mon Sep 17 00:00:00 2001 From: Oliver Kaufmann Date: Tue, 16 Feb 2021 10:50:34 +0100 Subject: [PATCH 3/3] update mockery --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0420378..52c3501 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "laravel/framework": "^6.0|^7.0|^8.0" }, "require-dev": { - "mockery/mockery": "^1.3.1", + "mockery/mockery": "^1.3.3", "illuminate/database": "^6.0|^7.0|^8.0", "orchestra/testbench": "^4.0|^5.0|^6.0", "doctrine/dbal": "^2.10"