Bugzilla – Attachment 100755 Details for
Bug 22025
Argument "" isn't numeric in numeric eq (==) at /usr/share/perl5/DBIx/Class/Row.pm line 1018 for /usr/share/koha/bin/import_patrons.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22025: Add a regression test
Bug-22025-Add-a-regression-test.patch (text/plain), 1.31 KB, created by
Jonathan Druart
on 2020-03-16 14:46:47 UTC
(
hide
)
Description:
Bug 22025: Add a regression test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-16 14:46:47 UTC
Size:
1.31 KB
patch
obsolete
>From e9d3614c46dcfe4fab53f0b06b27a7ec0d4f68e7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 16 Mar 2020 15:43:38 +0100 >Subject: [PATCH] Bug 22025: Add a regression test > >--- > t/db_dependent/Koha/Patrons/Import.t | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/Patrons/Import.t b/t/db_dependent/Koha/Patrons/Import.t >index e908613cc7..ea3d1d83bf 100644 >--- a/t/db_dependent/Koha/Patrons/Import.t >+++ b/t/db_dependent/Koha/Patrons/Import.t >@@ -18,7 +18,7 @@ > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >-use Test::More tests => 157; >+use Test::More tests => 158; > use Test::Warn; > use Encode qw( encode_utf8 ); > use utf8; >@@ -165,7 +165,10 @@ open(my $handle_3a, "<", $filename_3a) or die "cannot open < $filename_3: $!"; > my $params_3a = { file => $handle_3a, matchpoint => 'cardnumber', overwrite_cardnumber => 1}; > > # When ... >-my $result_3a = $patrons_import->import_patrons($params_3a); >+my $result_3a; >+warning_is { $result_3a = $patrons_import->import_patrons($params_3a) } >+ undef, >+ "No warning raised by import_patrons"; > > # Then ... > is($result_3a->{already_in_db}, 0, 'Got the expected 0 already_in_db from import_patrons when matched and overwrite set'); >-- >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 22025
:
100755
|
100756
|
100893
|
100894
|
101106
|
101107