Bug 10565: (follow-up) refresh DBIC schema class files
[koha.git] / t / Installer_pm.t
1 #!/usr/bin/perl
2 #
3 use strict;
4 use warnings;
5
6 use Test::More tests => 4;
7 use Data::Dumper;
8
9 BEGIN {
10     use_ok('C4::Installer::PerlModules');
11 }
12
13 my $obj = C4::Installer::PerlModules->new;
14
15 isa_ok($obj,'C4::Installer::PerlModules');
16
17 my $hash_ref = $obj->version_info(module => 'Test::More');
18
19 my $control = $Test::More::VERSION;
20
21 like($hash_ref->{'Test::More'}->{cur_ver}, qr/\d/, 'returns numeric version');
22
23 ok($hash_ref->{'Test::More'}->{cur_ver} == $control, 'returns correct version');
24
25