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
492 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 $hash_ref = $obj->version_info(module => 'Test::More');
my $control = $Test::More::VERSION;
like($hash_ref->{'Test::More'}->{cur_ver}, qr/\d/, 'returns numeric version');
ok($hash_ref->{'Test::More'}->{cur_ver} == $control, 'returns correct version');