Lines 892-898
subtest 'pickup_locations() tests' => sub {
Link Here
|
892 |
|
892 |
|
893 |
subtest 'edit() tests' => sub { |
893 |
subtest 'edit() tests' => sub { |
894 |
|
894 |
|
895 |
plan tests => 37; |
895 |
plan tests => 38; |
896 |
|
896 |
|
897 |
$schema->storage->txn_begin; |
897 |
$schema->storage->txn_begin; |
898 |
|
898 |
|
Lines 1061-1067
subtest 'edit() tests' => sub {
Link Here
|
1061 |
$item_hold->discard_changes; |
1061 |
$item_hold->discard_changes; |
1062 |
is( $item_hold->branchcode, $library_2->id, 'Pickup location changed correctly' ); |
1062 |
is( $item_hold->branchcode, $library_2->id, 'Pickup location changed correctly' ); |
1063 |
|
1063 |
|
|
|
1064 |
$t->put_ok( "//$userid:$password@/api/v1/holds/" |
1065 |
. $item_hold->id |
1066 |
=> json => { %$item_hold_data, suspended_until => undef } ) |
1067 |
->status_is(200); |
1068 |
|
1069 |
$item_hold->discard_changes; |
1070 |
is( $item_hold->suspend_until, undef, 'suspended_until can be set to undef' ); |
1071 |
|
1064 |
$schema->storage->txn_rollback; |
1072 |
$schema->storage->txn_rollback; |
|
|
1073 |
|
1065 |
}; |
1074 |
}; |
1066 |
|
1075 |
|
1067 |
subtest 'add() tests' => sub { |
1076 |
subtest 'add() tests' => sub { |
1068 |
- |
|
|