use Modern::Perl;
-use Test::More tests => 15;
+use Test::More tests => 16;
use Test::MockModule;
use Test::Warn;
use List::MoreUtils qw( uniq );
};
+subtest 'record test' => sub {
+ plan tests => 1;
+
+ my $marc_record = MARC::Record->new;
+ $marc_record->append_fields( create_isbn_field( '0590353403', 'MARC21' ) );
+
+ my ($biblionumber) = C4::Biblio::AddBiblio( $marc_record, '' );
+
+ my $biblio = Koha::Biblios->find($biblionumber);
+
+ is( $biblio->record->as_formatted,
+ $biblio->metadata->record->as_formatted );
+};
+
+
# Cleanup
Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" );