Bug 12911: batch_id for new labels batches can be asssigned to several batches
[koha-ffzg.git] / t / Koha_Template_Plugin_Koha.t
index e22e0d8..950257c 100644 (file)
@@ -30,15 +30,15 @@ subtest "Koha::Template::Plugin::Koha::Version tests" => sub {
 
     plan tests => 2;
 
-    # Variables for mocking KOHAVERSION
+    # Variables for mocking Koha::version()
     my $major;
     my $minor;
     my $maintenance;
     my $development;
 
-    # Mock C4::Context::KOHAVERSION
-    my $context = new Test::MockModule('C4::Context');
-    $context->mock( 'KOHAVERSION', sub {
+    # Mock Koha::version()
+    my $koha = new Test::MockModule('Koha');
+    $koha->mock( 'version', sub {
         return "$major.$minor.$maintenance.$development";
     });