Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:

jobs:
tests:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3, 8.4]
laravel: [10, 11, 12]
php: [8.1, 8.2, 8.3, 8.4, 8.5]
laravel: [10, 11, 12, 13]
include:
- php: 8.2
laravel: 9
Expand All @@ -26,12 +26,18 @@ jobs:
- php: '8.0'
laravel: 9
exclude:
- php: 8.5
laravel: 10
- php: 8.4
laravel: 10
- php: 8.2
laravel: 13
- php: 8.1
laravel: 11
- php: 8.1
laravel: 12
- php: 8.1
laravel: 13

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
],
"require": {
"php": "^8.0",
"illuminate/console": "^9.21|^10.0|^11.0|^12.0",
"illuminate/filesystem": "^9.21|^10.0|^11.0|^12.0",
"illuminate/support": "^9.21|^10.0|^11.0|^12.0",
"illuminate/validation": "^9.21|^10.0|^11.0|^12.0",
"symfony/console": "^6.0|^7.0"
"illuminate/console": "^9.21|^10.0|^11.0|^12.0|^13.0",
"illuminate/filesystem": "^9.21|^10.0|^11.0|^12.0|^13.0",
"illuminate/support": "^9.21|^10.0|^11.0|^12.0|^13.0",
"illuminate/validation": "^9.21|^10.0|^11.0|^12.0|^13.0",
"symfony/console": "^6.0|^7.0|^8.0"
},
"require-dev": {
"orchestra/testbench": "^7.35|^8.15|^9.0|^10.0",
"phpunit/phpunit": "^9.3|^10.4|^11.5"
"orchestra/testbench": "^7.35|^8.15|^9.0|^10.0|^11.0",
"phpunit/phpunit": "^9.3|^10.4|^11.5|^12.5|^13.0"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 0 additions & 3 deletions tests/AuthBackend/RegistersUsersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Http\Request;
use Illuminate\Routing\Pipeline;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Testing\TestResponse;
use Illuminate\Validation\ValidationException;
use Orchestra\Testbench\Attributes\WithMigration;
use Orchestra\Testbench\Factories\UserFactory;
use Orchestra\Testbench\TestCase;
use PHPUnit\Framework\Attributes\Test;

Expand Down
7 changes: 5 additions & 2 deletions tests/AuthBackend/ThrottleLoginsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ class ThrottleLoginsTest extends TestCase
#[DataProvider('emailProvider')]
public function it_can_generate_throttle_key(string $email, string $expectedEmail): void
{
$throttle = $this->createMock(ThrottlesLogins::class);
$throttle = $this->createStub(ThrottlesLogins::class);
$throttle->method('username')->willReturn('email');
$reflection = new \ReflectionClass($throttle);
$method = $reflection->getMethod('throttleKey');
$method->setAccessible(true);

if (PHP_VERSION_ID < 80100) {
$method->setAccessible(true);
}

$request = $this->mock(Request::class);
$request->expects('input')->with('email')->andReturn($email);
Expand Down
Loading