Bug 40003: Add a test

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c4f7b14906)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-05-27 10:40:15 +02:00 committed by Paul Derscheid
parent fd6552957e
commit 65b15bcc19
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 13 additions and 1 deletions

View File

@ -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();