Bug 14957: Exclude leader from saved/updated record comparison in tests

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
David Gustafsson 2021-10-01 16:47:44 +02:00 committed by Jonathan Druart
parent d306da9f8d
commit 6ab1ca2428

View file

@ -720,7 +720,9 @@ subtest 'context option in ModBiblio is handled correctly' => sub {
[ '500', 'a', 'One bottle of beer in the fridge' ], # original [ '500', 'a', 'One bottle of beer in the fridge' ], # original
[ '999', 'c', $biblionumber, 'd', $biblioitemnumber ], # created by AddBiblio [ '999', 'c', $biblionumber, 'd', $biblioitemnumber ], # created by AddBiblio
]); ]);
$expected_record->leader('00196 a2200073 4500');
# Make sure leader is equal after AddBiblio
$expected_record->leader($saved_record->leader());
is( is(
$saved_record->as_formatted, $saved_record->as_formatted,
@ -744,7 +746,9 @@ subtest 'context option in ModBiblio is handled correctly' => sub {
[ '500', 'a', 'One cold bottle of beer in the fridge' ], [ '500', 'a', 'One cold bottle of beer in the fridge' ],
[ '999', 'c', $biblionumber, 'd', $biblioitemnumber ], # created by AddBiblio [ '999', 'c', $biblionumber, 'd', $biblioitemnumber ], # created by AddBiblio
]); ]);
$expected_record->leader('00250 a2200085 4500');
# Make sure leader is equal after ModBiblio
$expected_record->leader($updated_record->leader());
is( is(
$updated_record->as_formatted, $updated_record->as_formatted,