refactor: upgrade to Livewire 4

This commit is contained in:
Benjamin Nussbaum 2026-01-14 23:59:00 +01:00
parent c94dd89361
commit a15645ad88
56 changed files with 166 additions and 278 deletions

View file

@ -1,7 +1,6 @@
<?php
use App\Models\User;
use Livewire\Volt\Volt;
uses(Illuminate\Foundation\Testing\RefreshDatabase::class);
@ -18,7 +17,7 @@ test('password can be confirmed', function (): void {
$this->actingAs($user);
$response = Volt::test('auth.confirm-password')
$response = Livewire::test('auth.confirm-password')
->set('password', 'password')
->call('confirmPassword');
@ -32,7 +31,7 @@ test('password is not confirmed with invalid password', function (): void {
$this->actingAs($user);
$response = Volt::test('auth.confirm-password')
$response = Livewire::test('auth.confirm-password')
->set('password', 'wrong-password')
->call('confirmPassword');