29-05-2026 Optimierungen Fixes am Code
This commit is contained in:
parent
e8c47b7553
commit
4bb9094207
31 changed files with 5141 additions and 76 deletions
|
|
@ -3,10 +3,14 @@
|
|||
use App\Models\User;
|
||||
use Livewire\Volt\Volt;
|
||||
|
||||
test('profile page is displayed', function () {
|
||||
$this->actingAs($user = User::factory()->create());
|
||||
test('profile settings route redirects to the customer profile page', function () {
|
||||
$this->actingAs(User::factory()->create());
|
||||
|
||||
$this->get('/settings/profile')->assertOk();
|
||||
// Das Profil ist seit dem Hub-/Customer-Portal-Umbau unter
|
||||
// /admin/me/profile (route `me.profile`) erreichbar. /settings/profile
|
||||
// bleibt als kanonischer Redirect bestehen. Das Rendern der Zielseite
|
||||
// deckt CustomerProfileSecurityTest über die Volt-Komponente ab.
|
||||
$this->get('/settings/profile')->assertRedirect('/admin/me/profile');
|
||||
});
|
||||
|
||||
test('profile information can be updated', function () {
|
||||
|
|
@ -72,4 +76,4 @@ test('correct password must be provided to delete account', function () {
|
|||
$response->assertHasErrors(['password']);
|
||||
|
||||
expect($user->fresh())->not->toBeNull();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue