Bug 34972: (QA follow-up) Remove second transfer from Circulation.t

Removing the manual transfer and rightaway doing the Reserve
transfer. One test description was misleading too.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Marcel de Rooy 2024-05-03 09:07:17 +00:00 committed by Katrin Fischer
parent 87c1759dd7
commit 7f22156b8f
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 2 additions and 6 deletions

View File

@ -6267,12 +6267,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;
@ -6285,7 +6281,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, );
};