From d656f6b692b9029215158287f5df74a25d05fddb 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 Signed-off-by: Matt Blenkinsop Signed-off-by: Martin Renvoize (cherry picked from commit 9f8b963616370139f53511f8229bb17cf4b9b0ea) Signed-off-by: Lucas Gass (cherry picked from commit fc498772abd0593111a0cbb8d1991bc4ca77c712) Signed-off-by: Fridolin Somers --- 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 e8813b78cd..3704613c7e 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'); }; @@ -842,7 +843,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.5