Bugzilla – Attachment 121631 Details for
Bug 28516
Koha/Patrons/Import.t is failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28516: Prevent failures if borrower_attribute_types.mandatory=1
Bug-28516-Prevent-failures-if-borrowerattributetyp.patch (text/plain), 1.27 KB, created by
Jonathan Druart
on 2021-06-04 13:39:42 UTC
(
hide
)
Description:
Bug 28516: Prevent failures if borrower_attribute_types.mandatory=1
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-06-04 13:39:42 UTC
Size:
1.27 KB
patch
obsolete
>From 210977d20c7941c45eb2bcb780aad325afe53e9a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 4 Jun 2021 15:36:59 +0200 >Subject: [PATCH] Bug 28516: Prevent failures if > borrower_attribute_types.mandatory=1 > >TestBuilder will generate an integer for the >Koha::Patron::Attribute::Type object, but if 1 is picked some tests are >failing randomly >At least t/db_dependent/Koha/Patrons.t and t/db_dependent/Koha/Patrons/Import.t >The expection "Missing mandatory extended attribute" is raised when the >patron is stored. > >Test plan: >The following script should return 0 when the patch is applied: > >""" >use t::lib::TestBuilder; >my $builder = t::lib::TestBuilder->new; >my $x = $builder->build_object( > { > class => 'Koha::Patron::Attribute::Types', > } >); >say $x->mandatory; >""" >--- > t/lib/TestBuilder.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index a39be708666..d72f9167354 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -585,7 +585,10 @@ sub _gen_default_values { > }, > AuthHeader => { > marcxml => '', >- } >+ }, >+ BorrowerAttributeType => { >+ mandatory => 0, >+ }, > }; > } > >-- >2.20.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 28516
:
121631
|
122283