From e81cbae655ea5be2bcfad2358e586e8a394f3d53 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Fri, 16 Oct 2020 12:00:10 +0100 Subject: [PATCH] Bug 24083: (follow-up) Fix bad rebase This commit fixes a couple of lines that got missed during the last rebase --- t/db_dependent/Circulation.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index fc35fee0a1..e90266084e 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -1169,6 +1169,7 @@ subtest "CanBookBeRenewed tests" => sub { } } ); + t::lib::Mocks::mock_preference('UnseenRenewals', 1); $dbh->do('UPDATE issues SET unseen_renewals = 2 where borrowernumber = ? AND itemnumber = ?', undef, ($renewing_borrowernumber, $item_1->itemnumber)); ( $renewokay, $error ) = CanBookBeRenewed($renewing_borrowernumber, $item_1->itemnumber); is( $renewokay, 0, 'Cannot renew, 0 unseen renewals allowed'); @@ -1184,6 +1185,7 @@ subtest "CanBookBeRenewed tests" => sub { } } ); + t::lib::Mocks::mock_preference('UnseenRenewals', 0); # Test WhenLostForgiveFine and WhenLostChargeReplacementFee t::lib::Mocks::mock_preference('WhenLostForgiveFine','1'); -- 2.20.1