Bug 15869: (follow-up) Don't mock undef return value
authorNick Clemens <nick@bywatersolutions.com>
Wed, 2 Nov 2022 19:27:38 +0000 (19:27 +0000)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Wed, 8 Feb 2023 16:34:45 +0000 (16:34 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit ab75204429a412dd232a2083e2116e91e6cfc573)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
t/db_dependent/ImportBatch.t

index a745861..1ff0edd 100755 (executable)
@@ -333,7 +333,7 @@ subtest "BatchCommitRecords overlay into framework" => sub {
     t::lib::Mocks::mock_config( 'enable_plugins', 0 );
     my $mock_import = Test::MockModule->new("C4::ImportBatch");
     my $biblio = $builder->build_sample_biblio;
-    $mock_import->mock( _get_commit_action => sub { return ('replace',undef,$biblio->biblionumber); } );
+    $mock_import->mock( _get_commit_action => sub { return ('replace','ignore',$biblio->biblionumber); } );
 
     my $import_batch = {
         matcher_id => 2,