Bug 39462: Unit tests

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Janusz Kaczmarek 2025-03-26 17:39:51 +00:00 committed by Katrin Fischer
parent cfe3421891
commit 81b6c3cf27
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 7 additions and 1 deletions

View File

@ -18,7 +18,7 @@
use Modern::Perl;
use Test::NoWarnings;
use Test::More tests => 8;
use Test::More tests => 9;
use Test::MockModule;
use C4::ClassSource;
@ -204,4 +204,10 @@ subtest 'generate_subfield_form framework plugin' => sub {
like( $subfield->{marc_value}->{javascript}, qr,<script>.*</script>,s );
};
subtest 'generate_subfield_form default value' => sub {
my $builder = Koha::UI::Form::Builder::Biblio->new( { biblionumber => 1 } );
is( $builder->{biblionumber}, 1, "Biblionumber correctly stored in object" );
};
$schema->storage->txn_rollback;