From a1743c558cf7142b482ab420079a40d70db2cf4c Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Tue, 1 Aug 2017 15:07:11 -0400 Subject: [PATCH] [SIGNED-OFF] Bug 14385: Trigger GetMarcBiblio's EmbedItemsInMarcBiblio call. prove t/db_dependent/Items.t Signed-off-by: Aleisha Amohia --- t/db_dependent/Items.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t index 05356c6..c5bbc36 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -516,7 +516,7 @@ subtest 'Koha::Item(s) tests' => sub { }; subtest 'C4::Biblio::EmbedItemsInMarcBiblio' => sub { - plan tests => 7; + plan tests => 8; $schema->storage->txn_begin(); @@ -575,6 +575,11 @@ subtest 'C4::Biblio::EmbedItemsInMarcBiblio' => sub { my @items = $record->field($itemfield); is( scalar @items, $number_of_items, 'Should return all items' ); + my $marc_with_items = C4::Biblio::GetMarcBiblio({ + biblionumber => $biblionumber, + embed_items => 1 }); + is_deeply( $record, $marc_with_items, 'A direct call to GetMarcBiblio with items matches'); + C4::Biblio::EmbedItemsInMarcBiblio({ marc_record => $record, biblionumber => $biblionumber, -- 2.1.4