Skip to content

Commit ac19bef

Browse files
authored
Add Laravel v10 support (#28)
1 parent aeb4790 commit ac19bef

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ jobs:
1010
matrix:
1111
os: [ ubuntu-latest ]
1212
php: [ 8.0, 8.1, 8.2 ]
13-
laravel: [ 9.* ]
13+
laravel: [ 9.*, 10.* ]
1414
dependency-version: [ prefer-lowest, prefer-stable ]
1515
exclude:
1616
- laravel: 9.*
1717
php: 8.2
18+
- laravel: 10.*
19+
php: 8.0
1820
include:
1921
- laravel: 9.*
2022
testbench: 7.*
21-
legacy-factories: 1.*
23+
- laravel: 10.*
24+
testbench: 8.*
2225

2326
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2427

@@ -45,10 +48,5 @@ jobs:
4548
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4649
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
4750
48-
- name: Install legacy factories dependency
49-
run: |
50-
composer require "laravel/legacy-factories:${{ matrix.legacy-factories }}" --no-interaction
51-
if: matrix.legacy-factories
52-
5351
- name: Execute tests
54-
run: vendor/bin/phpunit --verbose
52+
run: vendor/bin/phpunit --testdox

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
**THIS PACKAGE IS NOT MAINTAINED ANYMORE**
2-
3-
![cog-laravel-ownership-3](https://cloud.githubusercontent.com/assets/1849174/21737911/ee344682-d48e-11e6-9ace-eea37026ae6d.png)
1+
![cog-laravel-ownership](https://cloud.githubusercontent.com/assets/1849174/21737911/ee344682-d48e-11e6-9ace-eea37026ae6d.png)
42

53
<p align="center">
64
<a href="https://travis-ci.org/cybercog/laravel-ownership"><img src="https://img.shields.io/travis/cybercog/laravel-ownership/master.svg?style=flat-square" alt="Build Status"></a>

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
},
4242
"require": {
4343
"php": "^8.0",
44-
"illuminate/database": "^9.0",
45-
"illuminate/support": "^9.0"
44+
"illuminate/database": "^9.0|^10.0",
45+
"illuminate/support": "^9.0|^10.0"
4646
},
4747
"require-dev": {
48+
"laravel/legacy-factories": "^1.3",
4849
"mockery/mockery": "^1.0",
49-
"orchestra/database": "^7.0",
50-
"orchestra/testbench": "^7.0",
51-
"phpunit/phpunit": "^9.0|^10.0"
50+
"orchestra/testbench": "^7.0|^8.0",
51+
"phpunit/phpunit": "^9.6"
5252
},
5353
"autoload": {
5454
"psr-4": {

tests/TestCase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Cog\Tests\Laravel\Ownership\Stubs\Models\User;
1717
use Illuminate\Database\Eloquent\Relations\Relation;
1818
use Illuminate\Foundation\Application;
19-
use Orchestra\Database\ConsoleServiceProvider;
2019
use Orchestra\Testbench\TestCase as Orchestra;
2120

2221
/**
@@ -50,7 +49,6 @@ protected function getPackageProviders($app): array
5049
{
5150
return [
5251
OwnershipServiceProvider::class,
53-
ConsoleServiceProvider::class,
5452
];
5553
}
5654

0 commit comments

Comments
 (0)