From 905643c771cb3590fdbd621538abe2eef86ed8ae Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 31 Mar 2020 09:43:34 +0100 Subject: [PATCH] Bug 24474: (QA follow-up) Fix failing test The test was assuming default data and would fail if you ran through the test plan (and disabled all but `onpayment` for the 'MarkLostItemsAsReturned' preference) on the data before running the included unit tests. --- t/db_dependent/Circulation.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index f4a6c37092..d0c97ec0b0 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -2337,6 +2337,7 @@ subtest 'CanBookBeIssued + AutoReturnCheckedOutItems' => sub { subtest 'AddReturn | is_overdue' => sub { plan tests => 5; + t::lib::Mocks::mock_preference('MarkLostItemsAsReturned', 'batchmod|moredetail|cronjob|additem|pendingreserves|onpayment'); t::lib::Mocks::mock_preference('CalculateFinesOnReturn', 1); t::lib::Mocks::mock_preference('finesMode', 'production'); t::lib::Mocks::mock_preference('MaxFine', '100'); -- 2.20.1