Bugzilla – Attachment 42671 Details for
Bug 14368
Add discharges history
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14368 [Follow-up]: Fix tests.
Bug-14368-Follow-up-Fix-tests.patch (text/plain), 1.67 KB, created by
Jonathan Druart
on 2015-09-17 14:03:22 UTC
(
hide
)
Description:
Bug 14368 [Follow-up]: Fix tests.
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-09-17 14:03:22 UTC
Size:
1.67 KB
patch
obsolete
>From 808f485ed85a0cf79fc41174542a1d90bb6e9c1a Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Wed, 16 Sep 2015 14:54:13 +0200 >Subject: [PATCH] Bug 14368 [Follow-up]: Fix tests. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Borrower_Discharge.t | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Borrower_Discharge.t b/t/db_dependent/Borrower_Discharge.t >index 6a4b806..793283c 100644 >--- a/t/db_dependent/Borrower_Discharge.t >+++ b/t/db_dependent/Borrower_Discharge.t >@@ -53,8 +53,9 @@ is(Koha::Borrower::Discharge::generate_as_pdf,undef,"Confirm failure when lackin > Koha::Borrower::Discharge::discharge({ borrowernumber => $borrowernumber }); > is( Koha::Borrower::Discharge::is_discharged({ borrowernumber => $borrowernumber }), 1, 'The patron has been discharged' ); > is(Koha::Borrower::Debarments::IsDebarred($borrowernumber), '9999-12-31', 'The patron has been debarred after discharge'); >-Koha::Borrower::Debarments::DelDebarment($borrowernumber); >-is( Koha::Borrower::Discharge::is_discharged({ borrowernumber => $borrowernumber }), 1, 'The patron is not discharged after the restriction has been lifted' ); >+Koha::Borrower::Debarments::DelUniqueDebarment({'borrowernumber' => $borrowernumber, 'type' => 'DISCHARGE'}); >+ok(! Koha::Borrower::Debarments::IsDebarred($borrowernumber), 'The debarment has been lifted'); >+ok(! Koha::Borrower::Discharge::is_discharged({ borrowernumber => $borrowernumber }), 'The patron is not discharged after the restriction has been lifted' ); > > # Check if PDF::FromHTML is installed. > my $check = eval { require PDF::FromHTML; }; >-- >2.1.0
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 14368
:
40079
|
40171
|
40508
|
40512
|
42593
|
42598
|
42640
|
42670
| 42671 |
42672
|
42673
|
42720
|
42723
|
42930