create(); Sanctum::actingAs($user); $response = $this->getJson('/api/device-models'); $response->assertOk() ->assertJsonStructure([ 'data' => [ '*' => [ 'id', 'name', 'label', 'description', 'width', 'height', 'bit_depth', ], ], ]); }); it('blocks unauthenticated users from accessing device models', function (): void { $response = $this->getJson('/api/device-models'); $response->assertUnauthorized(); });