- 83 Komponenten: Livewire\Volt\Component → Livewire\Component
- 73 Routen (admin, auth, customer): Volt::route() → Route::livewire()
- 88 Testdateien: Volt::test/actingAs → Livewire::test/actingAs
- VoltServiceProvider gelöscht; composer remove livewire/volt
- config/livewire.php auf v4-Schlüssel (component_layout, component_placeholder,
component_locations, make_command: SFC ohne ⚡). Der alte Schlüssel layout war
wirkungslos; alle gerouteten Komponenten setzen ihr Layout selbst.
- CLAUDE.md, AGENTS.md, boost.json, .cursorrules, Skill volt-development
- Roadmap: erledigt; Larastan erfasst SFCs weiterhin nicht (Blade-Dateien)
Suite 2.325 grün, einer übersprungen; Larastan und Pint ohne Meldung;
route:cache und view:cache laufen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
66 lines
1.8 KiB
PHP
66 lines
1.8 KiB
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Auth\Notifications\ResetPassword;
|
|
use Illuminate\Support\Facades\Notification;
|
|
use Livewire\Livewire;
|
|
|
|
test('reset password link screen can be rendered', function () {
|
|
$response = $this->get('/forgot-password');
|
|
|
|
$response->assertStatus(200);
|
|
});
|
|
|
|
test('reset password link can be requested', function () {
|
|
Notification::fake();
|
|
|
|
$user = User::factory()->create();
|
|
|
|
Livewire::test('auth.forgot-password')
|
|
->set('email', $user->email)
|
|
->call('sendPasswordResetLink');
|
|
|
|
Notification::assertSentTo($user, ResetPassword::class);
|
|
});
|
|
|
|
test('reset password screen can be rendered', function () {
|
|
Notification::fake();
|
|
|
|
$user = User::factory()->create();
|
|
|
|
Livewire::test('auth.forgot-password')
|
|
->set('email', $user->email)
|
|
->call('sendPasswordResetLink');
|
|
|
|
Notification::assertSentTo($user, ResetPassword::class, function ($notification) {
|
|
$response = $this->get('/reset-password/'.$notification->token);
|
|
|
|
$response->assertStatus(200);
|
|
|
|
return true;
|
|
});
|
|
});
|
|
|
|
test('password can be reset with valid token', function () {
|
|
Notification::fake();
|
|
|
|
$user = User::factory()->create();
|
|
|
|
Livewire::test('auth.forgot-password')
|
|
->set('email', $user->email)
|
|
->call('sendPasswordResetLink');
|
|
|
|
Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) {
|
|
$response = Livewire::test('auth.reset-password', ['token' => $notification->token])
|
|
->set('email', $user->email)
|
|
->set('password', 'password')
|
|
->set('password_confirmation', 'password')
|
|
->call('resetPassword');
|
|
|
|
$response
|
|
->assertHasNoErrors()
|
|
->assertRedirect(route('login', absolute: false));
|
|
|
|
return true;
|
|
});
|
|
});
|