From edf978668a23dcdb20fc5d59eb8fbf56cd5562b4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 5 Mar 2024 12:31:12 +0000 Subject: [PATCH] Bug 35100: (follow-up) Fix test Previous patches changed the return values, just needed to update expectations Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize --- t/db_dependent/Koha/Item.t | 2 +- t/db_dependent/SIP/Transaction.t | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index bdcd59f193..9fa642be69 100755 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -20,7 +20,7 @@ use Modern::Perl; use utf8; -use Test::More tests => 35; +use Test::More tests => 37; use Test::Exception; use Test::MockModule; diff --git a/t/db_dependent/SIP/Transaction.t b/t/db_dependent/SIP/Transaction.t index f24f8bb90e..82933a53f1 100755 --- a/t/db_dependent/SIP/Transaction.t +++ b/t/db_dependent/SIP/Transaction.t @@ -406,13 +406,15 @@ subtest do_checkin => sub { is( $patron->checkouts->count, 0, 'Checkin should have been done successfully' ); my $result = $ci_transaction->do_checkin( $library2->branchcode, undef ); + my $transfer = $item->get_transfer; is( $ci_transaction->alert_type, '04', "Checkin of item no issued at another branch succeeds" ); is_deeply( $result, { messages => { 'NotIssued' => $item->barcode, - 'WasTransfered' => $library->branchcode, + 'WasTransfered' => $transfer->branchtransfer_id, + 'TransferTo' => $library->branchcode, 'TransferTrigger' => 'ReturnToHome' } }, -- 2.39.5