Bug 18222 - Fix tests broken by Buug 18026
authorOlli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
Tue, 7 Mar 2017 11:26:51 +0000 (13:26 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 20 Mar 2017 15:33:45 +0000 (15:33 +0000)
root@koha_ci_1:/home/koha/Koha# KOHA_CONF=$KOHA_CONF perl t/Koha_Template_Plugin_Koha.t
1..3
ok 1 - use Koha::Template::Plugin::Koha;
ok 2
    1..2
    ok 1 - Correct development version
    ok 2 - Correct maintenance version
ok 3 - Koha::Template::Plugin::Koha::Version tests

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/Koha_Template_Plugin_Koha.t

index 950257c..6bbe99f 100644 (file)
@@ -52,6 +52,7 @@ subtest "Koha::Template::Plugin::Koha::Version tests" => sub {
     my $res = Koha::Template::Plugin::Koha::Version( $version );
     is_deeply( $res, {
         major       => $major,
+        minor       => $minor,
         release     => $major . "." . $minor,
         maintenance => $major . "." . $minor . "." . $maintenance,
         development => $development
@@ -67,6 +68,7 @@ subtest "Koha::Template::Plugin::Koha::Version tests" => sub {
     $res = Koha::Template::Plugin::Koha::Version( $version );
     is_deeply( $res, {
         major       => $major,
+        minor       => $minor,
         release     => $major . "." . $minor,
         maintenance => $major . "." . $minor . "." . $maintenance,
         development => undef