|
Lines 277-283
subtest 'Reserves with itemtype' => sub {
Link Here
|
| 277 |
patron_id => int( $patron_1->borrowernumber ), |
277 |
patron_id => int( $patron_1->borrowernumber ), |
| 278 |
biblio_id => int( $biblio_1->biblionumber ), |
278 |
biblio_id => int( $biblio_1->biblionumber ), |
| 279 |
pickup_library_id => $branchcode, |
279 |
pickup_library_id => $branchcode, |
| 280 |
item_type => $itemtype, |
280 |
item_type_id => $itemtype, |
| 281 |
}; |
281 |
}; |
| 282 |
|
282 |
|
| 283 |
$t->delete_ok("//$userid_3:$password@/api/v1/holds/$reserve_id")->status_is( 204, 'REST3.2.4' ) |
283 |
$t->delete_ok("//$userid_3:$password@/api/v1/holds/$reserve_id")->status_is( 204, 'REST3.2.4' ) |
|
Lines 294-300
subtest 'Reserves with itemtype' => sub {
Link Here
|
| 294 |
$reserve_id = $t->tx->res->json->{hold_id}; |
294 |
$reserve_id = $t->tx->res->json->{hold_id}; |
| 295 |
|
295 |
|
| 296 |
$t->get_ok( "//$userid_1:$password@/api/v1/holds?patron_id=" . $patron_1->borrowernumber )->status_is(200) |
296 |
$t->get_ok( "//$userid_1:$password@/api/v1/holds?patron_id=" . $patron_1->borrowernumber )->status_is(200) |
| 297 |
->json_is( '/0/hold_id', $reserve_id )->json_is( '/0/item_type', $itemtype ); |
297 |
->json_is( '/0/hold_id', $reserve_id )->json_is( '/0/item_type_id', $itemtype ); |
| 298 |
}; |
298 |
}; |
| 299 |
|
299 |
|
| 300 |
subtest 'test AllowHoldDateInFuture' => sub { |
300 |
subtest 'test AllowHoldDateInFuture' => sub { |
|
Lines 769-775
subtest 'add() tests (maxreserves behaviour)' => sub {
Link Here
|
| 769 |
patron_id => $patron->borrowernumber, |
769 |
patron_id => $patron->borrowernumber, |
| 770 |
biblio_id => $biblio_1->biblionumber, |
770 |
biblio_id => $biblio_1->biblionumber, |
| 771 |
pickup_library_id => $item_1->home_branch->branchcode, |
771 |
pickup_library_id => $item_1->home_branch->branchcode, |
| 772 |
item_type => $item_1->itype, |
772 |
item_type_id => $item_1->itype, |
| 773 |
}; |
773 |
}; |
| 774 |
|
774 |
|
| 775 |
$t->post_ok( "//$userid:$password@/api/v1/holds" => json => $post_data )->status_is(201); |
775 |
$t->post_ok( "//$userid:$password@/api/v1/holds" => json => $post_data )->status_is(201); |
| 776 |
- |
|
|