[21.05] Fix unit tests for t/Search.t

This commit is contained in:
Kyle Hall 2021-09-23 11:32:35 +00:00
parent e30987857d
commit 8ab5f55d01

View file

@ -181,8 +181,8 @@ subtest "searchResults PassItemMarcToXSLT test" => sub {
t::lib::Mocks::mock_preference('marcflavour','MARC21');
my $mock_xslt = Test::MockModule->new("C4::Search");
$mock_xslt->mock( XSLTParse4Display => sub {
my $params = shift;
my $record = $params->{record};
my $biblionumber = shift;
my $record = shift;
warn $record->field('952') ? "Item here" : "No item";
return;
});