feat: add optional 'dni' and 'telefono' fields to User model and registration process

This commit is contained in:
2026-07-03 16:24:56 -03:00
parent 1d94ff8885
commit 6d066beea3
7 changed files with 71 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ class LoginControllerTest extends TestCase
$this->assertNotEmpty($response->json('token'));
$this->withHeader('Authorization', 'Bearer '.$response->json('token'))
->getJson('/api/user')
->getJson('/api/me')
->assertOk()
->assertJsonPath('id', $user->id)
->assertJsonPath('email', 'grace@example.com');
@@ -44,7 +44,7 @@ class LoginControllerTest extends TestCase
public function test_it_rejects_access_to_the_current_user_endpoint_without_a_token(): void
{
$this->getJson('/api/user')->assertUnauthorized();
$this->getJson('/api/me')->assertUnauthorized();
}
public function test_it_logs_out_the_current_token(): void