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

@ -2,7 +2,6 @@
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Livewire\Volt\Volt;
uses(Illuminate\Foundation\Testing\RefreshDatabase::class);
@ -13,7 +12,7 @@ test('password can be updated', function (): void {
$this->actingAs($user);
$response = Volt::test('settings.password')
$response = Livewire::test('settings.password')
->set('current_password', 'password')
->set('password', 'new-password')
->set('password_confirmation', 'new-password')
@ -31,7 +30,7 @@ test('correct password must be provided to update password', function (): void {
$this->actingAs($user);
$response = Volt::test('settings.password')
$response = Livewire::test('settings.password')
->set('current_password', 'wrong-password')
->set('password', 'new-password')
->set('password_confirmation', 'new-password')