Browse Source

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>
23.05.x
Nick Clemens 2 years ago
committed by Tomas Cohen Arazi
parent
commit
ab75204429
Signed by: tomascohen GPG Key ID: 0A272EA1B2F3C15F
  1. 2
      t/db_dependent/ImportBatch.t

2
t/db_dependent/ImportBatch.t

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

Loading…
Cancel
Save