We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd2a681 commit 7f634a0Copy full SHA for 7f634a0
tests/Unit/Endpoint/Api/V1/ClientEndpointTest.php
@@ -82,6 +82,11 @@ public function test_index_endpoint_returns_list_of_clients_assigned_to_employee
82
// Assert
83
$response->assertStatus(200);
84
$response->assertJsonCount(2, 'data');
85
+ $clients = Client::query()
86
+ ->whereBelongsTo($data->organization, 'organization')
87
+ ->visibleByEmployee($data->user)
88
+ ->orderBy('name')
89
+ ->get();
90
$response->assertJson(fn (AssertableJson $json) => $json
91
->has('data')
92
->has('links')
0 commit comments