Bug 15869: (follow-up) Don't mock undef return value

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit ab75204429)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2022-11-02 19:27:38 +00:00 committed by Jacob O'Mara
parent 69150d1fab
commit 65d7d2c646
1 changed files with 1 additions and 1 deletions

View File

@ -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,