Skip to content

Commit d0fe114

Browse files
authored
Merge pull request #4 from netsells/feature/add-laravel-10-support
feature/add-laravel-10-support
2 parents 4288daf + 8adf87a commit d0fe114

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: ['8.1']
15-
laravel: ['^9.1']
14+
php: ['8.1', '8.2']
15+
laravel: ['^9.1', '^10.0']
1616

1717
steps:
1818
- name: Checkout the repo

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"require": {
2525
"php": "^8.1",
2626
"hashids/hashids": "^4.1",
27-
"laravel/framework": "^9.1"
27+
"laravel/framework": "^9.1 || ^10.0"
2828
},
2929
"require-dev": {
30-
"orchestra/testbench": "^7.1"
30+
"orchestra/testbench": "^7.1 || ^8.0"
3131
},
3232
"autoload": {
3333
"psr-4": {

tests/Integration/AbstractIntegrationTest.php renamed to tests/Integration/AbstractIntegrationTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Netsells\HashModelIds\ServiceProvider;
66
use Orchestra\Testbench\TestCase;
77

8-
abstract class AbstractIntegrationTest extends TestCase
8+
abstract class AbstractIntegrationTestCase extends TestCase
99
{
1010
protected function getPackageProviders($app): array
1111
{

tests/Integration/ExistsWithHashedIdRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Netsells\HashModelIds\ExistsWithHashedIdRule;
88
use Netsells\HashModelIds\Tests\Integration\Fixtures\Models;
99

10-
class ExistsWithHashedIdRuleTest extends AbstractIntegrationTest
10+
class ExistsWithHashedIdRuleTest extends AbstractIntegrationTestCase
1111
{
1212
public function testRuleExpectsEloquentModels(): void
1313
{

tests/Integration/HashedModelIdTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Netsells\HashModelIds\Tests\Integration\Fixtures\Models\Foo;
66

7-
class HashedModelIdTest extends AbstractIntegrationTest
7+
class HashedModelIdTest extends AbstractIntegrationTestCase
88
{
99
private Foo $foo;
1010

tests/Integration/PrefixedModelIdTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Netsells\HashModelIds\ModelIdPrefixer;
66
use Netsells\HashModelIds\Tests\Integration\Fixtures\Models\Foo;
77

8-
class PrefixedModelIdTest extends AbstractIntegrationTest
8+
class PrefixedModelIdTest extends AbstractIntegrationTestCase
99
{
1010
private Foo $foo;
1111

tests/Integration/RouteBindingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Illuminate\Support\Facades\Route;
77
use Netsells\HashModelIds\Tests\Integration\Fixtures\Models\Foo;
88

9-
class RouteBindingTest extends AbstractIntegrationTest
9+
class RouteBindingTest extends AbstractIntegrationTestCase
1010
{
1111
public function testRouteBindingWithIdKey(): void
1212
{

tests/Integration/ScopedRouteBindingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Netsells\HashModelIds\Tests\Integration\Fixtures\Models\Foo;
88
use Netsells\HashModelIds\Tests\Integration\Fixtures\Models\FooRelation;
99

10-
class ScopedRouteBindingTest extends AbstractIntegrationTest
10+
class ScopedRouteBindingTest extends AbstractIntegrationTestCase
1111
{
1212
public function testScopedRouteBindingWithoutKeys(): void
1313
{

tests/Integration/WithTrashedScopeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Illuminate\Support\Facades\Route;
77
use Netsells\HashModelIds\Tests\Integration\Fixtures\Models\Trashed;
88

9-
class WithTrashedScopeTest extends AbstractIntegrationTest
9+
class WithTrashedScopeTest extends AbstractIntegrationTestCase
1010
{
1111
public function testModelsWithTrashedScopeCanBeLocated(): void
1212
{

0 commit comments

Comments
 (0)