neues Admin UI Layout eingeführt. Alle Tests auf den neusten Stand gebracht.

This commit is contained in:
Codex Agent
2025-12-30 10:24:06 +01:00
parent 902e78cae9
commit efe2f25b3e
85 changed files with 95235 additions and 19197 deletions

View File

@@ -16,7 +16,7 @@ class ProfileUpdateTest extends TestCase
$response = $this
->actingAs($user)
->get(route('profile.edit'));
->get(route('settings.profile.edit'));
$response->assertOk();
}
@@ -27,14 +27,14 @@ class ProfileUpdateTest extends TestCase
$response = $this
->actingAs($user)
->patch(route('profile.update'), [
->patch(route('settings.profile.update'), [
'name' => 'Test User',
'email' => 'test@example.com',
]);
$response
->assertSessionHasNoErrors()
->assertRedirect(route('profile.edit'));
->assertRedirect(route('settings.profile.edit'));
$user->refresh();
@@ -49,14 +49,14 @@ class ProfileUpdateTest extends TestCase
$response = $this
->actingAs($user)
->patch(route('profile.update'), [
->patch(route('settings.profile.update'), [
'name' => 'Test User',
'email' => $user->email,
]);
$response
->assertSessionHasNoErrors()
->assertRedirect(route('profile.edit'));
->assertRedirect(route('settings.profile.edit'));
$this->assertNotNull($user->refresh()->email_verified_at);
}
@@ -67,7 +67,7 @@ class ProfileUpdateTest extends TestCase
$response = $this
->actingAs($user)
->delete(route('profile.destroy'), [
->delete(route('settings.profile.destroy'), [
'password' => 'password',
]);
@@ -85,14 +85,14 @@ class ProfileUpdateTest extends TestCase
$response = $this
->actingAs($user)
->from(route('profile.edit'))
->delete(route('profile.destroy'), [
->from(route('settings.profile.edit'))
->delete(route('settings.profile.destroy'), [
'password' => 'wrong-password',
]);
$response
->assertSessionHasErrors('password')
->assertRedirect(route('profile.edit'));
->assertRedirect(route('settings.profile.edit'));
$this->assertNotNull($user->fresh());
}