Bugzilla – Attachment 73496 Details for
Bug 20503
Borrower_PrevCheckout.t is failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20503: Prevent Borrower_PrevCheckout.t to fail randomly
Bug-20503-Prevent-BorrowerPrevCheckoutt-to-fail-ra.patch (text/plain), 1.21 KB, created by
Jonathan Druart
on 2018-03-30 16:15:42 UTC
(
hide
)
Description:
Bug 20503: Prevent Borrower_PrevCheckout.t to fail randomly
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-03-30 16:15:42 UTC
Size:
1.21 KB
patch
obsolete
>From 08039f41c196f9119e5ca82f762e5260d8c81a1a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 30 Mar 2018 13:14:46 -0300 >Subject: [PATCH] Bug 20503: Prevent Borrower_PrevCheckout.t to fail randomly > >category_type must be != "X" > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Patron/Borrower_PrevCheckout.t | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Patron/Borrower_PrevCheckout.t b/t/db_dependent/Patron/Borrower_PrevCheckout.t >index d7975aee00..d58a543c77 100644 >--- a/t/db_dependent/Patron/Borrower_PrevCheckout.t >+++ b/t/db_dependent/Patron/Borrower_PrevCheckout.t >@@ -378,7 +378,8 @@ test_it($cpvPmappings, "PostReturn"); > # - $checkprevcheckout pref (first hardno, then hardyes) > > # Our Patron >-my $CBBI_patron = $builder->build({source => 'Borrower'}); >+my $patron_category = $builder->build({ source => 'Category', value => { category_type => 'P', enrolmentfee => 0 } }); >+my $CBBI_patron = $builder->build({source => 'Borrower', value => { categorycode => $patron_category->{categorycode} }}); > $patron = Koha::Patrons->find( $CBBI_patron->{borrowernumber} ); > # Our Items > >-- >2.11.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 20503
: 73496