mirror of
https://gh.wpcy.net/https://github.com/fairpm/aspirecloud.git
synced 2026-06-20 02:22:28 +08:00
17 lines
409 B
PHP
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');
|
|
});
|