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.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Katrin Fischer 2023-05-15 20:54:41 +00:00 committed by Jonathan Druart
parent a6238aa816
commit 78984024c8

View file

@ -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',
}
);