Update php tests

This commit is contained in:
Bubka
2023-12-05 16:32:20 +01:00
parent 4685e23fdb
commit eaaefc1f1b
5 changed files with 23 additions and 24 deletions

View File

@ -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',
]);
}