Bug 25348: (QA follow-up) Silence irrelevant warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 11 Aug 2020 15:41:57 +0000 (12:41 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Aug 2020 08:15:33 +0000 (10:15 +0200)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

t/db_dependent/SIP/Transaction.t

index a11b6b4..c4c164a 100755 (executable)
@@ -352,11 +352,11 @@ subtest checkin_lost => sub {
     my $ils = C4::SIP::ILS->new( $instituation );
 
     t::lib::Mocks::mock_preference('BlockReturnOfLostItems', '1');
-    my $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp );
+    my $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode );
     is( $circ->{screen_msg}, 'Item lost, return not allowed', "Got correct screen message" );
 
     t::lib::Mocks::mock_preference('BlockReturnOfLostItems', '0');
-    $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp );
+    $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode );
     is( $circ->{screen_msg}, 'Item not checked out', "Got 'Item not checked out' screen message" );
 };
 
@@ -390,11 +390,11 @@ subtest checkin_withdrawn => sub {
     my $ils = C4::SIP::ILS->new( $instituation );
 
     t::lib::Mocks::mock_preference('BlockReturnOfWithdrawnItems', '1');
-    my $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp );
+    my $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode );
     is( $circ->{screen_msg}, 'Item withdrawn, return not allowed', "Got correct screen message" );
 
     t::lib::Mocks::mock_preference('BlockReturnOfWithdrawnItems', '0');
-    $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp );
+    $circ = $ils->checkin( $item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode );
     is( $circ->{screen_msg}, 'Item not checked out', "Got 'Item not checked out' screen message" );
 };