Bug 17641: Fix t/Biblio/Isbd.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 16 Nov 2016 09:49:20 +0000 (09:49 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 16 Nov 2016 14:02:30 +0000 (14:02 +0000)
On commit cadf5aea814636ccccd85fcc38aa30f751d779c0
    Bug 11592: MARCView and ISBD followup
The prototype of C4::Biblio::GetISBDView has been changed to take a
hashref in parameter.
But the tests have not been updated

Test plan:
  prove t/Biblio/Isbd.t
should return green

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
https://bugs.koha-community.org/show_bug.cgi?id=17637
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/Biblio/Isbd.t

index 8b6239e..be790e9 100644 (file)
@@ -43,8 +43,8 @@ $record->append_fields(
 );
 my ($bibnum, $title, $bibitemnum) = AddBiblio($record, '');
 
-my $isbd = GetISBDView($bibnum);
+my $isbd = GetISBDView({ record => $record });
 is($isbd, '<h2>Title : Mountains by Keith Lye</h2>', 'ISBD is correct');
 
-my $opacisbd = GetISBDView($bibnum, 'opac');
+my $opacisbd = GetISBDView({ record => $record, template => 'opac' });
 is($opacisbd, '<h2>Title : Mountains (Keith Lye)</h2>', 'OPAC ISBD is correct');