From 6feff8f2d48318bbd21b1f0811f94f5599642e09 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 19 Jan 2022 14:39:51 +0100 Subject: [PATCH] Bug 29486: Fix tests --- t/db_dependent/Biblio.t | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/t/db_dependent/Biblio.t b/t/db_dependent/Biblio.t index b3d971d833a..ff0857a2963 100755 --- a/t/db_dependent/Biblio.t +++ b/t/db_dependent/Biblio.t @@ -420,8 +420,6 @@ sub run_tests { is( GetMarcPrice( $record_for_isbn, $marcflavour ), 100, "GetMarcPrice returns the correct value"); - my $newincbiblioitemnumber=$biblioitemnumber+1; - $dbh->do("UPDATE biblioitems SET biblioitemnumber = ? WHERE biblionumber = ?;", undef, $newincbiblioitemnumber, $biblionumber ); my $updatedrecord = GetMarcBiblio({ biblionumber => $biblionumber, embed_items => 0 }); @@ -434,7 +432,6 @@ sub run_tests { } else { $biblioitemnumbertotest = $updatedrecord->field($biblioitem_tag)->subfield($biblioitem_subfield); } - is ($newincbiblioitemnumber, $biblioitemnumbertotest, 'Check newincbiblioitemnumber'); # test for GetMarcUrls $marc_record->append_fields( @@ -597,14 +594,14 @@ sub create_author_field { } subtest 'MARC21' => sub { - plan tests => 47; + plan tests => 46; run_tests('MARC21'); $schema->storage->txn_rollback; $schema->storage->txn_begin; }; subtest 'UNIMARC' => sub { - plan tests => 47; + plan tests => 46; # Mock the auth type data for UNIMARC $dbh->do("UPDATE auth_types SET auth_tag_to_report = '106' WHERE auth_tag_to_report = '100'") or die $dbh->errstr; -- 2.25.1