create([ 'id' => '12345', 'compo_id' => '67890', ]); IncoCompo::factory()->create([ 'id' => '67890', 'id_inco' => '12345', 'identification' => [ 'name' => 'Poulet RĂ´ti 1kg Test', 'number' => '12345', 'source' => 'LDC', ], ]); // WHEN $response = $test->getJson("/api/v1/inco-sheets/{$sheet->id}/composition"); // THEN $response->assertStatus(200); $response->assertValidRequest(); $response->assertValidResponse(); }); });