@@ -, +, @@ --- t/db_dependent/Circulation.t | 37 ++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) --- a/t/db_dependent/Circulation.t +++ a/t/db_dependent/Circulation.t @@ -18,7 +18,7 @@ use Modern::Perl; use utf8; -use Test::More tests => 48; +use Test::More tests => 49; use Test::Exception; use Test::MockModule; use Test::Deep qw( cmp_deeply ); @@ -2345,7 +2345,7 @@ subtest 'CanBookBeIssued + AutoReturnCheckedOutItems' => sub { subtest 'AddReturn | is_overdue' => sub { - plan tests => 8; + plan tests => 9; t::lib::Mocks::mock_preference('MarkLostItemsAsReturned', 'batchmod|moredetail|cronjob|additem|pendingreserves|onpayment'); t::lib::Mocks::mock_preference('CalculateFinesOnReturn', 1); @@ -2658,6 +2658,39 @@ subtest 'AddReturn | is_overdue' => sub { Koha::Account::Lines->search( { borrowernumber => $patron->borrowernumber } )->delete; }; + + subtest 'enh 23091 | Lost item return policies' => sub { + plan tests => 1; + + ok(1); + + # Do nothing + # + # Refund fee + ## Without fee + ## With fee + # + # Refund fee and restore fine + ## Without fee + ### Without fine + ### With fine (forgiven) + ### With fine (unforgiven) + ## With fee + ### Without fine + ### With fine (forgiven) + ### With fine (unforgiven) + # + # Refund fee and charge new fine + ## Without fee + ### Without fine + ### With fine (forgiven) + ### With fine (unforgiven) + ## With fee + ### Without fine + ### With fine (forgiven) + ### With fine (unforgiven) + ### Backdated return + }; }; subtest '_RestoreOverdueForLostAndFound' => sub { --