aspirecloud/tests/Feature/Sanctum/ProfileInformationTest.php
2025-10-25 13:15:51 -06:00

17 lines
409 B
PHP

<?php
declare(strict_types=1);
use App\Models\User;
test('profile information can be updated', function () {
$this->actingAs($user = User::factory()->create());
$this->put('/user/profile-information', [
'name' => 'Test Name',
'email' => 'test@example.com',
]);
expect($user->fresh())
->name?->toEqual('Test Name')
->email?->toEqual('test@example.com');
});