diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index e6c10fda00..d79018ec50 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -5916,12 +5916,8 @@ subtest 'Checkout should correctly terminate a transfer' => sub { my $do_transfer = 1; ModItemTransfer( $item->itemnumber, $library_1->branchcode, - $library_2->branchcode, 'Manual' ); + $library_2->branchcode, 'Reserve' ); ModReserveAffect( $item->itemnumber, undef, $do_transfer, $reserve_id ); - ModItemTransfer( - $item->itemnumber, $library_1->branchcode, - $library_2->branchcode, 'Reserve' - ); # To put the Reason, it's what does returns.pl... my $hold = Koha::Holds->find($reserve_id); is( $hold->found, 'T', 'Hold is in transit' ); my $transfer = $item->get_transfer; @@ -5934,7 +5930,7 @@ subtest 'Checkout should correctly terminate a transfer' => sub { $transfer = $transfer->get_from_storage; isnt( $transfer->datearrived, undef ); $hold = $hold->get_from_storage; - is( $hold->found, undef, 'Hold is waiting' ); + is( $hold->found, undef, 'Hold is not waiting or transit' ); is( $hold->priority, 1, ); };