Bugzilla – Attachment 29148 Details for
Bug 12416
DelUniqueDebarment (Debarments.pm) is not tested in Borrower_Debarments.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 12416: add the test of DelUniqueDebarment
PASSED-QA-Bug-12416-add-the-test-of-DelUniqueDebar.patch (text/plain), 1.79 KB, created by
Katrin Fischer
on 2014-06-22 20:06:32 UTC
(
hide
)
Description:
[PASSED QA] Bug 12416: add the test of DelUniqueDebarment
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-06-22 20:06:32 UTC
Size:
1.79 KB
patch
obsolete
>From d363839c727d444c7ca8d41320acd93b8e0c444a Mon Sep 17 00:00:00 2001 >From: Yohann Dufour <dufour.yohann@gmail.com> >Date: Mon, 16 Jun 2014 09:13:35 +0200 >Subject: [PATCH] [PASSED QA] Bug 12416: add the test of DelUniqueDebarment > >The subroutine DelUniqueDebarment was not tested > >To test: execute the command prove t/db_dependent/Borrower_Debarments.t >The command has to print: >t/db_dependent/Borrower_Debarments.t .. ok >All tests successful. >Files=1, Tests=22, 2 wallclock secs ( 0.03 usr 0.01 sys + 1.43 cusr 0.07 csys = 1.54 CPU) >Result: PASS > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Comments on last patch > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >--- > t/db_dependent/Borrower_Debarments.t | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Borrower_Debarments.t b/t/db_dependent/Borrower_Debarments.t >index 44d82b9..2f63fcf 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 => 21; >+use Test::More tests => 22; > > use_ok('Koha::Borrower::Debarments'); > >@@ -86,6 +86,17 @@ ok( @$debarments == 1, "GetDebarments returns 1 OVERDUES debarment after running > ok( $debarments->[0]->{'expiration'} eq '9999-11-09', "AddOverduesDebarment updated OVERDUES debarment correctly" ); > > >+DelUniqueDebarment({ >+ borrowernumber => $borrowernumber, >+ type => 'OVERDUES', >+}); >+$debarments = GetDebarments({ >+ borrowernumber => $borrowernumber, >+ type => 'OVERDUES', >+}); >+is( @$debarments, 0, "DelUniqueDebarment functions correctly" ); >+ >+ > $debarments = GetDebarments({ borrowernumber => $borrowernumber }); > foreach my $d ( @$debarments ) { > DelDebarment( $d->{'borrower_debarment_id'} ); >-- >1.9.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 12416
:
28834
|
28859
|
28860
|
28861
|
29139
|
29140
|
29141
| 29148 |
29149
|
29150