Bugzilla – Attachment 141973 Details for
Bug 31154
Batch item modification fails when "Use default values" is checked
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31154: Add test
Bug-31154-Add-test.patch (text/plain), 1.70 KB, created by
Jonathan Druart
on 2022-10-17 14:02:25 UTC
(
hide
)
Description:
Bug 31154: Add test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-10-17 14:02:25 UTC
Size:
1.70 KB
patch
obsolete
>From 740b5c655d82317f1dfd25630f9159e9407122d8 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 17 Oct 2022 15:59:52 +0200 >Subject: [PATCH] Bug 31154: Add test > >--- > t/db_dependent/Koha/UI/Form/Builder/Item.t | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/UI/Form/Builder/Item.t b/t/db_dependent/Koha/UI/Form/Builder/Item.t >index f5c33368881..3be0647dc0d 100755 >--- a/t/db_dependent/Koha/UI/Form/Builder/Item.t >+++ b/t/db_dependent/Koha/UI/Form/Builder/Item.t >@@ -16,7 +16,7 @@ > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >-use Test::More tests => 8; >+use Test::More tests => 9; > use Data::Dumper qw( Dumper ); > use utf8; > >@@ -26,6 +26,7 @@ use Koha::Libraries; > use Koha::MarcSubfieldStructures; > use Koha::UI::Form::Builder::Item; > use t::lib::TestBuilder; >+use t::lib::Mocks; > > my $schema = Koha::Database->new->schema; > $schema->storage->txn_begin; >@@ -334,6 +335,19 @@ subtest 'ignore_invisible_subfields' => sub { > undef, 'items.issues not copied if ignore_invisible_subfields is passed' ); > }; > >+subtest 'Fix subfill_with_default_values - no biblionumber passed' => sub { >+ plan tests => 1; >+ >+ t::lib::Mocks::mock_preference('itemcallnumber', '082ab,092ab'); >+ my $item = $builder->build_sample_item; >+ my $subfields = Koha::UI::Form::Builder::Item->new( >+ { >+ item => $item->unblessed, >+ } >+ )->edit_form({ prefill_with_default_values => 1 }); >+ pass(); >+}; >+ > $cache->clear_from_cache("MarcStructure-0-"); > $cache->clear_from_cache("MarcStructure-1-"); > $cache->clear_from_cache("default_value_for_mod_marc-"); >-- >2.25.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 31154
:
138124
|
140518
|
140602
|
140694
|
140695
|
141973
|
141974
|
142051
|
142052