Clean up for static analysis
This commit is contained in:
parent
113e862dab
commit
d4c7ea6853
|
|
@ -101,14 +101,6 @@ class PurchaseOrderTest extends TestCase
|
|||
'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();
|
||||
|
||||
$i = $po->invitations->first();
|
||||
|
|
@ -133,8 +125,12 @@ class PurchaseOrderTest extends TestCase
|
|||
$response = $this->withHeaders([
|
||||
'X-API-SECRET' => config('ninja.api_secret'),
|
||||
'X-API-TOKEN' => $this->token,
|
||||
])->post("/api/v1/purchase_orders/bulk", $data)
|
||||
->assertStatus(200);
|
||||
])->postJson("/api/v1/purchase_orders/bulk", $data);
|
||||
|
||||
|
||||
echo(print_r($response->getContent(), true));
|
||||
|
||||
$response->assertStatus(200);
|
||||
|
||||
$data = [
|
||||
'ids' => [$po->hashed_id],
|
||||
|
|
|
|||
Loading…
Reference in New Issue