From 691cfcb90f631c84585b9e97bc01dbe96539be63 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 15 May 2023 20:54:41 +0000 Subject: [PATCH] Bug 11844: (follow-up) Fix tests Moves the test from 999 which already exists in record to 998 as the feature only matches on the first field. --- t/db_dependent/Koha/Object/Mixin/AdditionalFields.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Object/Mixin/AdditionalFields.t b/t/db_dependent/Koha/Object/Mixin/AdditionalFields.t index c397701f8a..e33a77d068 100755 --- a/t/db_dependent/Koha/Object/Mixin/AdditionalFields.t +++ b/t/db_dependent/Koha/Object/Mixin/AdditionalFields.t @@ -20,7 +20,7 @@ subtest 'set_additional_fields with marcfield_mode = "get"' => sub { my $biblio = $builder->build_sample_biblio(); my $record = $biblio->record; $record->append_fields( - MARC::Field->new('999', '', '', 'Z' => 'some value'), + MARC::Field->new('998', '', '', 'Z' => 'some value'), ); $biblio->metadata->metadata($record->as_xml_record(C4::Context->preference('marcflavour'))); $biblio->metadata->store()->discard_changes(); @@ -35,7 +35,7 @@ subtest 'set_additional_fields with marcfield_mode = "get"' => sub { { tablename => 'subscription', name => random_string('c' x 100), - marcfield => '999$Z', + marcfield => '998$Z', marcfield_mode => 'get', } ); -- 2.30.2