20-02-2026

This commit is contained in:
Kevin Adametz 2026-02-20 17:57:50 +01:00
parent 854ce02bf6
commit 4d6b4930b2
128 changed files with 18247 additions and 2093 deletions

View file

@ -3,10 +3,10 @@
use App\Models\User;
use Livewire\Volt\Volt;
test('profile page is displayed', function () {
$this->actingAs($user = User::factory()->create());
test('profile page requires authentication', function () {
$portalUrl = 'https://'.config('domains.domain_portal');
$this->get('/settings/profile')->assertOk();
$this->get($portalUrl.'/settings/profile')->assertRedirect();
});
test('profile information can be updated', function () {
@ -56,7 +56,7 @@ test('user can delete their account', function () {
->assertHasNoErrors()
->assertRedirect('/');
expect($user->fresh())->toBeNull();
expect($user->fresh()->trashed())->toBeTrue();
expect(auth()->check())->toBeFalse();
});