Bugzilla – Attachment 180227 Details for
Bug 39462
(bug 37870 follow-up) Default values from framework are inserted into existing record while editing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39462: Unit tests
Bug-39462-Unit-tests.patch (text/plain), 1.24 KB, created by
Martin Renvoize (ashimema)
on 2025-04-01 16:59:29 UTC
(
hide
)
Description:
Bug 39462: Unit tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-04-01 16:59:29 UTC
Size:
1.24 KB
patch
obsolete
>From 3523f7fd94a215a318adb7d76b2fd3b813ce7ef0 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Wed, 26 Mar 2025 17:39:51 +0000 >Subject: [PATCH] Bug 39462: Unit tests > >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> >--- > t/db_dependent/Koha/UI/Form/Builder/Biblio.t | 8 +++++++- > 1 file changed, 7 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 ab63fc34a30..1f1e0a1897d 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 => 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; >-- >2.49.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 39462
:
179742
|
179743
|
179744
|
179745
|
180226
| 180227