Bugzilla – Attachment 111389 Details for
Bug 26518
Adding a record can succeed even if adding the biblioitem fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26518: Hide expected DBI warnings
Bug-26518-Hide-expected-DBI-warnings.patch (text/plain), 1.07 KB, created by
Jonathan Druart
on 2020-10-09 10:09:28 UTC
(
hide
)
Description:
Bug 26518: Hide expected DBI warnings
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-10-09 10:09:28 UTC
Size:
1.07 KB
patch
obsolete
>From c128166e0a579ea9c46e3965a9215e783e13ef5b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Oct 2020 12:09:08 +0200 >Subject: [PATCH] Bug 26518: Hide expected DBI warnings > >--- > t/db_dependent/Biblio.t | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Biblio.t b/t/db_dependent/Biblio.t >index a3381bd71f..1914294027 100755 >--- a/t/db_dependent/Biblio.t >+++ b/t/db_dependent/Biblio.t >@@ -55,8 +55,13 @@ subtest 'AddBiblio' => sub { > $record->append_fields($lccn_field); > > my $nb_biblios = Koha::Biblios->count; >- my ( $biblionumber, $biblioitemnumber ) = >- C4::Biblio::AddBiblio( $record, '' ); >+ my ( $biblionumber, $biblioitemnumber ); >+ { >+ local *STDERR; >+ open STDERR, '>', '/dev/null'; >+ ( $biblionumber, $biblioitemnumber ) = C4::Biblio::AddBiblio( $record, '' ); >+ close STDERR; >+ } > is( $biblionumber, undef, > 'AddBiblio returns undef for biblionumber if something went wrong' ); > is( $biblioitemnumber, undef, >-- >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 26518
:
110902
|
110903
|
111387
|
111389
|
111512
|
111513
|
111514
|
111515
|
113046
|
113671
|
113672
|
113673
|
113674
|
113917
|
113918
|
113919
|
113920
|
113921