Bugzilla – Attachment 27582 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]
[PASSED QA] Bug 12134: Add unit tests to reflect the change in IsDebarred
PASSED-QA-Bug-12134-Add-unit-tests-to-reflect-the-.patch (text/plain), 1.25 KB, created by
Martin Renvoize
on 2014-04-25 08:54:41 UTC
(
hide
)
Description:
[PASSED QA] Bug 12134: Add unit tests to reflect the change in IsDebarred
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2014-04-25 08:54:41 UTC
Size:
1.25 KB
patch
obsolete
>From 464a45171cdfba0d2003daf85a2dcfa684871d9a 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] [PASSED QA] 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> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.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