From ba3af1adb0fb403b0a54a9ac6243c226aac0a8f9 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 15 Jul 2020 11:23:38 +0100 Subject: [PATCH] Bug 23091: Outline of tests to be written Signed-off-by: Andrew Fuerste-Henry --- t/db_dependent/Circulation.t | 37 ++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 83761ad06c..e3e369b7ca 100755 --- a/t/db_dependent/Circulation.t +++ b/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 { -- 2.20.1