Bugzilla – Attachment 71419 Details for
Bug 20144
Test suite is failing with new default SQL modes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20144: [sql_modes] Set auth_header.marcxml to an empty string in tests
Bug-20144-sqlmodes-Set-authheadermarcxml-to-an-emp.patch (text/plain), 1.95 KB, created by
Julian Maurice
on 2018-02-12 09:57:47 UTC
(
hide
)
Description:
Bug 20144: [sql_modes] Set auth_header.marcxml to an empty string in tests
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-02-12 09:57:47 UTC
Size:
1.95 KB
patch
obsolete
>From 5e6d2674f08bfa94b100c5b6402d9a5e356c6778 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Feb 2018 15:51:03 -0300 >Subject: [PATCH] Bug 20144: [sql_modes] Set auth_header.marcxml to an empty > string in tests > >Fix for: >Field 'marcxml' doesn't have a default value > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > t/db_dependent/Koha/Authorities.t | 4 ++-- > t/lib/TestBuilder.pm | 3 +++ > 2 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/Authorities.t b/t/db_dependent/Koha/Authorities.t >index 9fa6c73b81..321a0a9036 100644 >--- a/t/db_dependent/Koha/Authorities.t >+++ b/t/db_dependent/Koha/Authorities.t >@@ -61,8 +61,8 @@ my $new_authority_type_1 = Koha::Authority::Type->new( > summary => 'my summary for authority 1', > } > )->store; >-my $new_authority_1 = Koha::Authority->new( { authtypecode => $new_authority_type_1->authtypecode, } )->store; >-my $new_authority_2 = Koha::Authority->new( { authtypecode => $new_authority_type_1->authtypecode, } )->store; >+my $new_authority_1 = Koha::Authority->new( { authtypecode => $new_authority_type_1->authtypecode, marcxml => '' } )->store; >+my $new_authority_2 = Koha::Authority->new( { authtypecode => $new_authority_type_1->authtypecode, marcxml => '' } )->store; > > is( Koha::Authority::Types->search->count, $nb_of_authority_types + 1, 'The authority type should have been added' ); > is( Koha::Authorities->search->count, $nb_of_authorities + 2, 'The 2 authorities should have been added' ); >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index ed56e5a0d6..615fc10d3d 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -484,6 +484,9 @@ sub _gen_default_values { > tax_rate => 0, > discount => 0, > }, >+ AuthHeader => { >+ marcxml => '', >+ }, > }; > } > >-- >2.14.2
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 20144
:
71410
|
71411
|
71412
|
71413
|
71414
|
71415
|
71416
|
71417
|
71418
| 71419 |
71420
|
71421
|
71422
|
71423
|
71424
|
71425
|
71427
|
71428
|
71429
|
71430
|
71431
|
71432
|
71434
|
71435
|
71436
|
71437
|
71438
|
71440
|
71441
|
71442
|
71443
|
71444
|
71445
|
71446
|
71447
|
71448
|
71449
|
71450
|
71451
|
71452
|
71453
|
71454
|
71455
|
71456
|
71457
|
71458
|
71459
|
71460
|
71461
|
71462
|
71463
|
71467
|
71564