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