From 44a5aea34d12404d669a2ff47b004ca1db064cde Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 18 Feb 2021 08:43:25 +0000 Subject: [PATCH] Bug 24446: (QA follow-up) SIP test fix for bug 27166 A new test was introduced in bug 27166 since this code was written, this patch simply updates the test for the additional 'TransferTrigger' message that is returned by this patchset. --- t/db_dependent/SIP/Transaction.t | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/SIP/Transaction.t b/t/db_dependent/SIP/Transaction.t index ee29265998..a3587bdee1 100755 --- a/t/db_dependent/SIP/Transaction.t +++ b/t/db_dependent/SIP/Transaction.t @@ -324,7 +324,17 @@ subtest do_checkin => sub { my $result = $ci_transaction->do_checkin($library2->branchcode, undef); is($ci_transaction->alert_type,'04',"Checkin of item no issued at another branch succeeds"); - is_deeply($result,{ messages => { 'NotIssued' => $item->barcode, 'WasTransfered' => 1 } },"Messages show not issued and transferred"); + is_deeply( + $result, + { + messages => { + 'NotIssued' => $item->barcode, + 'WasTransfered' => $library->branchcode, + 'TransferTrigger' => 'ReturnToHome' + } + }, + "Messages show not issued and transferred" + ); is( $ci_transaction->item->destination_loc,$library->branchcode,"Item destination correctly set"); subtest 'Checkin an in transit item' => sub { -- 2.20.1