Bug 30403: (QA follow-up) Fix warning in unit test

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2022-12-16 09:21:48 -05:00 committed by Tomas Cohen Arazi
parent b1731a54e5
commit d320d98a2e
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -558,7 +558,7 @@ my $itemnumber4 = Koha::Item->new(
t::lib::Mocks::mock_preference( 'UpdateNotForLoanStatusOnCheckout', q{} );
AddIssue( $borrower_2, 'barcode_6', dt_from_string );
my $item = Koha::Items->find( $itemnumber4 );
$item = Koha::Items->find( $itemnumber4 );
ok( $item->notforloan eq -1, 'UpdateNotForLoanStatusOnCheckout does not modify value when not enabled' );
t::lib::Mocks::mock_preference( 'UpdateNotForLoanStatusOnCheckout', '-1: 0' );