Skip to content

Commit 7f634a0

Browse files
committed
wip
1 parent bd2a681 commit 7f634a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Unit/Endpoint/Api/V1/ClientEndpointTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ public function test_index_endpoint_returns_list_of_clients_assigned_to_employee
8282
// Assert
8383
$response->assertStatus(200);
8484
$response->assertJsonCount(2, 'data');
85+
$clients = Client::query()
86+
->whereBelongsTo($data->organization, 'organization')
87+
->visibleByEmployee($data->user)
88+
->orderBy('name')
89+
->get();
8590
$response->assertJson(fn (AssertableJson $json) => $json
8691
->has('data')
8792
->has('links')

0 commit comments

Comments
 (0)