Lines 1419-1426
subtest 'PUT /holds/{hold_id}/pickup_location tests' => sub {
Link Here
|
1419 |
|
1419 |
|
1420 |
$t->put_ok( "//$userid:$password@/api/v1/holds/" |
1420 |
$t->put_ok( "//$userid:$password@/api/v1/holds/" |
1421 |
. $in_transit_hold->id |
1421 |
. $in_transit_hold->id |
1422 |
. "/pickup_location" => json => { pickup_library_id => $library_2->branchcode } )->status_is(409) |
1422 |
. "/pickup_location" => json => { pickup_library_id => $library_2->branchcode } )->status_is(200) |
1423 |
->json_is( { error => q{Cannot change pickup location}, error_code => 'hold_in_transit' } ); |
1423 |
->json_is( { pickup_library_id => $library_2->branchcode } ); |
1424 |
|
1424 |
|
1425 |
$schema->storage->txn_rollback; |
1425 |
$schema->storage->txn_rollback; |
1426 |
}; |
1426 |
}; |
1427 |
- |
|
|