Bugzilla – Attachment 105030 Details for
Bug 25531
Patron may not be debarred if backdated return
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25531: Add tests
Bug-25531-Add-tests.patch (text/plain), 1.47 KB, created by
Jonathan Druart
on 2020-05-18 15:54:49 UTC
(
hide
)
Description:
Bug 25531: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-05-18 15:54:49 UTC
Size:
1.47 KB
patch
obsolete
>From 08fbf26dace619eba83eb4751bf0458fe73aa33d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 18 May 2020 17:49:37 +0200 >Subject: [PATCH] Bug 25531: Add tests > >--- > 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 42b18d1d11..8764a05610 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -2102,7 +2102,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} } } ); >@@ -2288,6 +2288,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, >+ return_date => $now->clone->add(days => 5), >+ expiration_date => $now->clone->add(days => 5 + (5 * 2 - 1) ), >+ } >+ ); >+ > }; > > subtest 'CanBookBeIssued + AutoReturnCheckedOutItems' => sub { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25531
:
105030
|
105031
|
105064
|
105096
|
105097
|
105102
|
105103
|
105168