mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-16 00:27:49 +02:00
Update php tests
This commit is contained in:
@ -43,11 +43,14 @@ class UserControllerTest extends FeatureTestCase
|
||||
$response = $this->actingAs($this->user, 'api-guard')
|
||||
->json('GET', '/api/v1/user')
|
||||
->assertOk()
|
||||
->assertExactJson([
|
||||
'name' => $this->user->name,
|
||||
'id' => $this->user->id,
|
||||
'email' => $this->user->email,
|
||||
'is_admin' => $this->user->is_admin,
|
||||
->assertJsonFragment([
|
||||
'name' => $this->user->name,
|
||||
'id' => $this->user->id,
|
||||
'email' => $this->user->email,
|
||||
'is_admin' => $this->user->is_admin,
|
||||
])
|
||||
->assertJsonStructure([
|
||||
'preferences',
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user