Revert "Bug 6554: Followup for preferences.pl"
[koha.git] / t / Installer_pm.t
blob4370174e3fb558618b10387412f4c2e6d8afbbfc
1 #!/usr/bin/perl
3 use strict;
4 use warnings;
6 use Test::More tests => 4;
7 use Data::Dumper;
9 BEGIN {
10 use_ok('C4::Installer::PerlModules');
13 my $obj = C4::Installer::PerlModules->new;
15 isa_ok($obj,'C4::Installer::PerlModules');
17 my $hash_ref = $obj->version_info(module => 'Test::More');
19 my $control = $Test::More::VERSION;
21 like($hash_ref->{'Test::More'}->{cur_ver}, qr/\d/, 'returns numeric version');
23 ok($hash_ref->{'Test::More'}->{cur_ver} == $control, 'returns correct version');