Bug 13758: (QA followup) revert case change that broke the tests
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 7 May 2015 17:12:14 +0000 (14:12 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 7 May 2015 17:12:14 +0000 (14:12 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/Koha_Template_Plugin_Koha.t

index 50c198f..950257c 100644 (file)
@@ -26,7 +26,7 @@ use String::Random;
 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;
 
@@ -38,7 +38,7 @@ subtest "Koha::Template::Plugin::Koha::version tests" => sub {
 
     # Mock Koha::version()
     my $koha = new Test::MockModule('Koha');
-    $koha->mock( 'Version', sub {
+    $koha->mock( 'version', sub {
         return "$major.$minor.$maintenance.$development";
     });
 
@@ -49,7 +49,7 @@ subtest "Koha::Template::Plugin::Koha::version tests" => sub {
     $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,
@@ -64,7 +64,7 @@ subtest "Koha::Template::Plugin::Koha::version tests" => sub {
     $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,