Bug 35100: (follow-up) Fix test

Previous patches changed the return values, just needed to update expectations

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2024-03-05 12:31:12 +00:00 committed by Martin Renvoize
parent bcb4ac59d4
commit edf978668a
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -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'
}
},