File "ProfileInformationTest.php"
Full Path: /home/fundopuh/trader.fxex.org/vendor/laravel/jetstream/stubs/pest-tests/inertia/ProfileInformationTest.php
File size: 394 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
use App\Models\User;
test('profile information can be updated', function () {
$this->actingAs($user = User::factory()->create());
$response = $this->put('/user/profile-information', [
'name' => 'Test Name',
'email' => 'test@example.com',
]);
expect($user->fresh())
->name->toEqual('Test Name')
->email->toEqual('test@example.com');
});