use_ok( 'Koha::Template::Plugin::Koha' );
ok( my $cache = Koha::Template::Plugin::Koha->new() );
-subtest "Koha::Template::Plugin::Koha::version tests" => sub {
+subtest "Koha::Template::Plugin::Koha::Version tests" => sub {
plan tests => 2;
# Mock Koha::version()
my $koha = new Test::MockModule('Koha');
- $koha->mock( 'Version', sub {
+ $koha->mock( 'version', sub {
return "$major.$minor.$maintenance.$development";
});
$maintenance = $rnd->randregex('\d\d');
$development = $rnd->randregex('\d\d\d');
my $version = "$major.$minor.$maintenance.$development";
- my $res = Koha::Template::Plugin::Koha::version( $version );
+ my $res = Koha::Template::Plugin::Koha::Version( $version );
is_deeply( $res, {
major => $major,
release => $major . "." . $minor,
$maintenance = $rnd->randregex('\d\d');
$development = "000";
$version = "$major.$minor.$maintenance.$development";
- $res = Koha::Template::Plugin::Koha::version( $version );
+ $res = Koha::Template::Plugin::Koha::Version( $version );
is_deeply( $res, {
major => $major,
release => $major . "." . $minor,