@@ -, +, @@ --- t/db_dependent/api/v1/holds.t | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) --- a/t/db_dependent/api/v1/holds.t +++ a/t/db_dependent/api/v1/holds.t @@ -892,7 +892,7 @@ subtest 'pickup_locations() tests' => sub { subtest 'edit() tests' => sub { - plan tests => 37; + plan tests => 38; $schema->storage->txn_begin; @@ -1061,7 +1061,16 @@ subtest 'edit() tests' => sub { $item_hold->discard_changes; is( $item_hold->branchcode, $library_2->id, 'Pickup location changed correctly' ); + $t->put_ok( "//$userid:$password@/api/v1/holds/" + . $item_hold->id + => json => { %$item_hold_data, suspended_until => undef } ) + ->status_is(200); + + $item_hold->discard_changes; + is( $item_hold->suspend_until, undef, 'suspended_until can be set to undef' ); + $schema->storage->txn_rollback; + }; subtest 'add() tests' => sub { --