Bugzilla – Attachment 113919 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.18 KB, created by
Nick Clemens (kidclamp)
on 2020-11-23 12:11:08 UTC
(
hide
)
Description:
Bug 26518: Hide expected DBI warnings
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-11-23 12:11:08 UTC
Size:
1.18 KB
patch
obsolete
>From 22bfd74ba04371ef96e2b2d4fde61ea7f235cde5 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 > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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 6876d8f7f5..309b8534c7 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.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 26518
:
110902
|
110903
|
111387
|
111389
|
111512
|
111513
|
111514
|
111515
|
113046
|
113671
|
113672
|
113673
|
113674
|
113917
|
113918
| 113919 |
113920
|
113921