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:
parent
bcb4ac59d4
commit
edf978668a
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue