just work, thanks
This commit is contained in:
parent
fb14603e17
commit
3afd8b9f03
|
@ -198,7 +198,6 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
||||||
$response->assertJsonStructure([
|
$response->assertJsonStructure([
|
||||||
'object',
|
'object',
|
||||||
'attributes' => ['id', 'external_id', 'uuid', 'username', 'email', 'language', 'admin_role_id', 'root_admin', '2fa', 'created_at', 'updated_at'],
|
'attributes' => ['id', 'external_id', 'uuid', 'username', 'email', 'language', 'admin_role_id', 'root_admin', '2fa', 'created_at', 'updated_at'],
|
||||||
'meta' => ['resource'],
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertDatabaseHas('users', ['username' => 'testuser', 'email' => 'test@example.com']);
|
$this->assertDatabaseHas('users', ['username' => 'testuser', 'email' => 'test@example.com']);
|
||||||
|
@ -207,9 +206,6 @@ class UserControllerTest extends ApplicationApiIntegrationTestCase
|
||||||
$response->assertJson([
|
$response->assertJson([
|
||||||
'object' => 'user',
|
'object' => 'user',
|
||||||
'attributes' => (new UserTransformer())->transform($user),
|
'attributes' => (new UserTransformer())->transform($user),
|
||||||
'meta' => [
|
|
||||||
'resource' => route('api.application.users.view', $user->id),
|
|
||||||
],
|
|
||||||
], true);
|
], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue