From 582b943bfb20bb78f785db0d0092a7f71fb2aadd Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 12 Nov 2020 12:12:35 -0500 Subject: [PATCH] Bug 26351: (QA follow-up) Remove unused method barcode_transform Signed-off-by: Martin Renvoize --- t/db_dependent/Koha/Plugins/Plugins.t | 3 +-- t/lib/Koha/Plugin/Test.pm | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/t/db_dependent/Koha/Plugins/Plugins.t b/t/db_dependent/Koha/Plugins/Plugins.t index 427aeb81ef..ce4e9958b2 100755 --- a/t/db_dependent/Koha/Plugins/Plugins.t +++ b/t/db_dependent/Koha/Plugins/Plugins.t @@ -25,7 +25,7 @@ use File::Temp qw( tempdir tempfile ); use FindBin qw($Bin); use Module::Load::Conditional qw(can_load); use Test::MockModule; -use Test::More tests => 56; +use Test::More tests => 55; use C4::Context; use Koha::Database; @@ -212,7 +212,6 @@ ok( $plugin->can('opac_js'), 'Test plugin can opac_js' ); ok( $plugin->can('intranet_head'), 'Test plugin can intranet_head' ); ok( $plugin->can('intranet_js'), 'Test plugin can intranet_js' ); ok( $plugin->can('barcode_transform'), 'Test plugin can barcode_transform' ); -ok( $plugin->can('barcode_generate'), 'Test plugin can barcode_generate' ); ok( $plugin->can('configure'), 'Test plugin can configure' ); ok( $plugin->can('install'), 'Test plugin can install' ); ok( $plugin->can('upgrade'), 'Test plugin can upgrade' ); diff --git a/t/lib/Koha/Plugin/Test.pm b/t/lib/Koha/Plugin/Test.pm index b5393e5d66..ecd39f5a4c 100644 --- a/t/lib/Koha/Plugin/Test.pm +++ b/t/lib/Koha/Plugin/Test.pm @@ -98,11 +98,6 @@ sub barcode_transform { Koha::Exceptions::Exception->throw("barcode_transform called with parameters: $type, $barcode"); } -sub barcode_generate { - my ( $self, $type, $object ) = @_; - return "Koha::Plugin::Test::barcode_generate"; -} - sub configure { my ( $self, $args ) = @_; return "Koha::Plugin::Test::configure"; -- 2.30.1 (Apple Git-130)