Lines 72-78
subtest 'list() tests' => sub {
Link Here
|
72 |
my $fields = { |
72 |
my $fields = { |
73 |
biblio_id => 'biblionumber', |
73 |
biblio_id => 'biblionumber', |
74 |
basket_id => 'basketno', |
74 |
basket_id => 'basketno', |
75 |
budget_id => 'budget_id', |
75 |
fund_id => 'budget_id', |
76 |
}; |
76 |
}; |
77 |
|
77 |
|
78 |
my $size = keys %{$fields}; |
78 |
my $size = keys %{$fields}; |
Lines 84-90
subtest 'list() tests' => sub {
Link Here
|
84 |
my $result = |
84 |
my $result = |
85 |
$t->get_ok("//$userid:$password@/api/v1/acquisitions/orders?$field=" . $order->$model_field) |
85 |
$t->get_ok("//$userid:$password@/api/v1/acquisitions/orders?$field=" . $order->$model_field) |
86 |
->status_is(200) |
86 |
->status_is(200) |
87 |
->json_has( [ $order, $another_order ] ); |
87 |
->json_is( [ $order->to_api, $another_order->to_api ] ); |
88 |
} |
88 |
} |
89 |
}; |
89 |
}; |
90 |
|
90 |
|
91 |
- |
|
|