Bugzilla – Attachment 182792 Details for
Bug 40003
Warning generated when creating a new bib record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40003: Add a test
Bug-40003-Add-a-test.patch (text/plain), 1.20 KB, created by
Jonathan Druart
on 2025-05-27 09:25:40 UTC
(
hide
)
Description:
Bug 40003: Add a test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-05-27 09:25:40 UTC
Size:
1.20 KB
patch
obsolete
>From 9b71bbd079ab1bc9639f28c78451bbdd9e6e0251 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 27 May 2025 10:40:15 +0200 >Subject: [PATCH] Bug 40003: Add a test > >--- > t/db_dependent/Koha/UI/Form/Builder/Biblio.t | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/UI/Form/Builder/Biblio.t b/t/db_dependent/Koha/UI/Form/Builder/Biblio.t >index 1f1e0a1897d..4283ca7e81c 100755 >--- a/t/db_dependent/Koha/UI/Form/Builder/Biblio.t >+++ b/t/db_dependent/Koha/UI/Form/Builder/Biblio.t >@@ -18,7 +18,7 @@ > use Modern::Perl; > > use Test::NoWarnings; >-use Test::More tests => 9; >+use Test::More tests => 10; > use Test::MockModule; > > use C4::ClassSource; >@@ -37,6 +37,18 @@ $schema->storage->txn_begin; > > use_ok('Koha::UI::Form::Builder::Biblio'); > >+subtest 'new' => sub { >+ plan tests => 1; >+ >+ # No warning >+ Koha::UI::Form::Builder::Biblio->new(); >+ >+ # No warning if passing CGI->param('biblionumber') >+ Koha::UI::Form::Builder::Biblio->new( { biblionumber => undef } ); >+ >+ ok(1); >+}; >+ > subtest 'generate_subfield_form default value' => sub { > my $builder = Koha::UI::Form::Builder::Biblio->new(); > >-- >2.34.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 40003
:
182791
|
182792
|
182794
|
182795