Bug 25348: (QA follow-up) Silence irrelevant warnings
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ed6a65c1dd
commit
6d7e7fc066
1 changed files with 4 additions and 4 deletions
|
@ -352,11 +352,11 @@ subtest checkin_lost => sub {
|
||||||
my $ils = C4::SIP::ILS->new( $instituation );
|
my $ils = C4::SIP::ILS->new( $instituation );
|
||||||
|
|
||||||
t::lib::Mocks::mock_preference('BlockReturnOfLostItems', '1');
|
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" );
|
is( $circ->{screen_msg}, 'Item lost, return not allowed', "Got correct screen message" );
|
||||||
|
|
||||||
t::lib::Mocks::mock_preference('BlockReturnOfLostItems', '0');
|
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" );
|
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 );
|
my $ils = C4::SIP::ILS->new( $instituation );
|
||||||
|
|
||||||
t::lib::Mocks::mock_preference('BlockReturnOfWithdrawnItems', '1');
|
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" );
|
is( $circ->{screen_msg}, 'Item withdrawn, return not allowed', "Got correct screen message" );
|
||||||
|
|
||||||
t::lib::Mocks::mock_preference('BlockReturnOfWithdrawnItems', '0');
|
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" );
|
is( $circ->{screen_msg}, 'Item not checked out', "Got 'Item not checked out' screen message" );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue