Skip to content

Commit

Permalink
Merge pull request #202 from kontenta/laravel10
Browse files Browse the repository at this point in the history
Support Laravel 10
  • Loading branch information
erik-epineer authored May 2, 2023
2 parents d3f7322 + 1d49ed3 commit 0cea1b6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 27 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1, 8.0]
laravel: [9.*]
laravel: [10.*, 9.*]
stability: [prefer-lowest, prefer-stable]
include:
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
exclude:
- laravel: 10.*
php: 8.0

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authentication, authorization, validation, views, etc.
Kontour is there to provide enhancements and reusable elements for your admin
area.

You need **Laravel 9** to use the latest version of this package.
You need at least **Laravel 9** to use the latest version of this package.

## Using Kontour in a Laravel app

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Admin area tool utilities for Laravel",
"license": "MIT",
"require": {
"laravel/framework": "^9.0",
"laravel/framework": "^9.0 || ^10.0",
"laravel/ui": "^4.0"
},
"require-dev": {
Expand Down
29 changes: 7 additions & 22 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage/>
<testsuites>
<testsuite name="Package Tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
Expand All @@ -33,4 +13,9 @@
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="APP_URL" value="http://127.0.0.1:8001"/>
</php>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
4 changes: 3 additions & 1 deletion tests/IntegrationTestSetupTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ protected function getEnvironmentSetUp($app)
'driver' => 'eloquent',
'model' => User::class,
]);

// Use the same password reset table as for the users
$app['config']->set('auth.passwords.admins', [
'provider' => 'admins',
'table' => 'password_resets',
'table' => $app['config']['auth']['passwords']['users']['table'],
'expire' => 60,
]);
$app['config']->set('kontour.guard', 'admin');
Expand Down

0 comments on commit 0cea1b6

Please sign in to comment.