Bugzilla – Attachment 27547 Details for
Bug 12134
Members are restricted even if the debarment is ended
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12134: Add unit tests to reflect the change in IsDebarred
Bug-12134-Add-unit-tests-to-reflect-the-change-in-.patch (text/plain), 1.18 KB, created by
Jonathan Druart
on 2014-04-24 15:38:45 UTC
(
hide
)
Description:
Bug 12134: Add unit tests to reflect the change in IsDebarred
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-04-24 15:38:45 UTC
Size:
1.18 KB
patch
obsolete
>From 3f92c6b26d3c0052ee59a50c047c403ea4cf9092 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 24 Apr 2014 17:36:44 +0200 >Subject: [PATCH] Bug 12134: Add unit tests to reflect the change in > IsDebarred > >Before Kyle's patch, the test failed. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > t/db_dependent/Borrower_Debarments.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Borrower_Debarments.t b/t/db_dependent/Borrower_Debarments.t >index 88141f6..9e2fd61 100755 >--- a/t/db_dependent/Borrower_Debarments.t >+++ b/t/db_dependent/Borrower_Debarments.t >@@ -5,7 +5,7 @@ use Modern::Perl; > use C4::Context; > use C4::Members; > >-use Test::More tests => 18; >+use Test::More tests => 19; > > use_ok('Koha::Borrower::Debarments'); > >@@ -93,4 +93,7 @@ foreach my $d ( @$debarments ) { > $debarments = GetDebarments({ borrowernumber => $borrowernumber }); > ok( @$debarments == 0, "DelDebarment functions correctly" ); > >+$dbh->do(q|UPDATE borrowers SET debarred = '1970-01-01'|); >+is( IsDebarred( $borrowernumber ), undef, 'A patron with a debarred date in the past is not debarred' ); >+ > $dbh->rollback; >-- >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 12134
:
27544
|
27546
|
27547
|
27581
|
27582
|
27607