diff --git a/tests/Feature/PurchaseOrderTest.php b/tests/Feature/PurchaseOrderTest.php index 14ba6b765a4..f8af7d0bcd7 100644 --- a/tests/Feature/PurchaseOrderTest.php +++ b/tests/Feature/PurchaseOrderTest.php @@ -113,8 +113,12 @@ public function testPurchaseOrderBulkActions() $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 $response->getContent(); + + $response->assertStatus(200); $data = [