Lines 187-193
subtest "RecordsFromMarcPlugin" => sub {
Link Here
|
187 |
close $fh; |
187 |
close $fh; |
188 |
|
188 |
|
189 |
t::lib::Mocks::mock_config( 'enable_plugins', 1 ); |
189 |
t::lib::Mocks::mock_config( 'enable_plugins', 1 ); |
190 |
my ( $plugin ) = Koha::Plugins->new->GetPlugins({ metadata => { name => 'MarcFieldValues' } }); |
190 |
t::lib::Mocks::mock_preference( 'EnablePlugins', 1 ); |
|
|
191 |
my ($plugin) = Koha::Plugins->new->GetPlugins({ all => 1, metadata => { name => 'MarcFieldValues' } }); |
191 |
isnt( $plugin, undef, "Plugin found" ); |
192 |
isnt( $plugin, undef, "Plugin found" ); |
192 |
my $records = C4::ImportBatch::RecordsFromMarcPlugin( $name, ref $plugin, 'UTF-8' ); |
193 |
my $records = C4::ImportBatch::RecordsFromMarcPlugin( $name, ref $plugin, 'UTF-8' ); |
193 |
is( @$records, 2, 'Two results returned' ); |
194 |
is( @$records, 2, 'Two results returned' ); |
194 |
- |
|
|