From 6066bb39a5ed9b284bf2344e4b98394e89f809a3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 May 2020 17:49:37 +0200 Subject: [PATCH] Bug 25531: Add tests Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- t/db_dependent/Circulation.t | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 5b6e04dd59..9b53952774 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -1814,7 +1814,7 @@ subtest 'AddReturn + CumulativeRestrictionPeriods' => sub { }; subtest 'AddReturn + suspension_chargeperiod' => sub { - plan tests => 21; + plan tests => 24; my $library = $builder->build( { source => 'Branch' } ); my $patron = $builder->build( { source => 'Borrower', value => { categorycode => $patron_category->{categorycode} } } ); @@ -1973,6 +1973,18 @@ subtest 'AddReturn + suspension_chargeperiod' => sub { expiration_date => $now->clone->add(days => 5 + (5 * 2 - 1) ), } ); + + test_debarment_on_checkout( + { + item => $item_1, + library => $library, + patron => $patron, + due_date => $now->clone->add(days => 1), + return_date => $now->clone->add(days => 5), + expiration_date => $now->clone->add(days => 5 + (4 * 2 - 1) ), + } + ); + }; subtest 'CanBookBeIssued + AutoReturnCheckedOutItems' => sub { -- 2.39.5