feat: add optional 'dni' and 'telefono' fields to User model and registration process
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user