From e98f2357862e670b3b05fbad94866c9b3addea7f Mon Sep 17 00:00:00 2001
From: Tomas Cohen Arazi <tomascohen@theke.io>
Date: Fri, 7 Feb 2020 09:53:32 -0300
Subject: [PATCH] Bug 24611: Regression test

---
 t/db_dependent/api/v1/acquisitions_orders.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/db_dependent/api/v1/acquisitions_orders.t b/t/db_dependent/api/v1/acquisitions_orders.t
index 4fae8e440d..39650a4309 100644
--- a/t/db_dependent/api/v1/acquisitions_orders.t
+++ b/t/db_dependent/api/v1/acquisitions_orders.t
@@ -72,7 +72,7 @@ subtest 'list() tests' => sub {
         my $fields = {
             biblio_id => 'biblionumber',
             basket_id => 'basketno',
-            budget_id => 'budget_id',
+            fund_id   => 'budget_id',
         };
 
         my $size = keys %{$fields};
@@ -84,7 +84,7 @@ subtest 'list() tests' => sub {
             my $result =
             $t->get_ok("//$userid:$password@/api/v1/acquisitions/orders?$field=" . $order->$model_field)
               ->status_is(200)
-              ->json_has( [ $order, $another_order ] );
+              ->json_is( [ $order->to_api, $another_order->to_api ] );
         }
     };
 
-- 
2.25.0