From c2d4803f0315b746012b30dd6966b1a19da41e8a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 30 May 2024 15:19:55 +0000 Subject: [PATCH] Bug 36938: Adjusts tests to remove warns --- t/db_dependent/Biblio.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Biblio.t b/t/db_dependent/Biblio.t index 1a5bf99fd2e..ef8eb0ca545 100755 --- a/t/db_dependent/Biblio.t +++ b/t/db_dependent/Biblio.t @@ -98,6 +98,7 @@ subtest 'AddBiblio' => sub { }); warning_like { $builder->build_sample_biblio(); } qr/My biblionumber is \d+ and my frameworkcode is /, "The biblionumber is correctly passed to BiblioAutoLink"; + $mock_biblio->unmock('BiblioAutoLink'); subtest 'record_source_id param tests' => sub { @@ -861,7 +862,7 @@ subtest "LinkBibHeadingsToAuthorities record generation tests" => sub { # Set up mocks to ensure authorities are generated my $biblio_mod = Test::MockModule->new( 'C4::Linker::Default' ); $biblio_mod->mock( 'get_link', sub { - return (undef,undef); + return (undef,undef,0); }); # UNIMARC valid headings are built from the marc_subfield_structure for bibs and # include all subfields as valid, testing with MARC21 should be sufficient for now -- 2.39.2