Bugzilla – Attachment 42593 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.60 KB, created by
Matthias Meusburger
on 2015-09-16 12:55:27 UTC
(
hide
)
Description:
Bug 14368 [Follow-up]: Fix tests.
Filename:
MIME Type:
Creator:
Matthias Meusburger
Created:
2015-09-16 12:55:27 UTC
Size:
1.60 KB
patch
obsolete
>From 712cca53eb4bddc23371c5696b8bf8652895006d 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. > >--- > 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; }; >-- >1.7.10.4
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