Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
457 B

#!/usr/bin/perl
#
use strict;
use warnings;
use Test::More tests => 4;
use Data::Dumper;
BEGIN {
use_ok('C4::Installer::PerlModules');
}
my $obj = C4::Installer::PerlModules->new;
isa_ok($obj,'C4::Installer::PerlModules');
my $module_info = $obj->version_info('Test::More');
my $control = $Test::More::VERSION;
like($module_info->{cur_ver}, qr/\d/, 'returns numeric version');
is($module_info->{cur_ver}, $control, 'returns correct version');