Clean up for static analysis

This commit is contained in:
David Bomba 2025-01-05 15:20:06 +11:00
parent 113e862dab
commit d4c7ea6853
1 changed files with 6 additions and 10 deletions

View File

@ -101,14 +101,6 @@ class PurchaseOrderTest extends TestCase
'vendor_id' => $this->vendor->id, 'vendor_id' => $this->vendor->id,
]); ]);
// PurchaseOrderInvitation::factory()->create([
// 'user_id' => $this->user->id,
// 'company_id' => $this->company->id,
// 'vendor_contact_id' => $this->vendor->contacts()->first()->id,
// 'purchase_order_id' => $po->id,
// ]);
$po->service()->createInvitations()->save(); $po->service()->createInvitations()->save();
$i = $po->invitations->first(); $i = $po->invitations->first();
@ -133,8 +125,12 @@ class PurchaseOrderTest extends TestCase
$response = $this->withHeaders([ $response = $this->withHeaders([
'X-API-SECRET' => config('ninja.api_secret'), 'X-API-SECRET' => config('ninja.api_secret'),
'X-API-TOKEN' => $this->token, 'X-API-TOKEN' => $this->token,
])->post("/api/v1/purchase_orders/bulk", $data) ])->postJson("/api/v1/purchase_orders/bulk", $data);
->assertStatus(200);
echo(print_r($response->getContent(), true));
$response->assertStatus(200);
$data = [ $data = [
'ids' => [$po->hashed_id], 'ids' => [$po->hashed_id],