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:
parent
d306da9f8d
commit
6ab1ca2428
1 changed files with 6 additions and 2 deletions
|
@ -720,7 +720,9 @@ subtest 'context option in ModBiblio is handled correctly' => sub {
|
|||
[ '500', 'a', 'One bottle of beer in the fridge' ], # original
|
||||
[ '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(
|
||||
$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' ],
|
||||
[ '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(
|
||||
$updated_record->as_formatted,
|
||||
|
|
Loading…
Reference in a new issue