From a7a6d1180d5e0ac03a7fdd046631a610a94676fb Mon Sep 17 00:00:00 2001 From: John Doe Date: Fri, 16 Oct 2020 11:23:23 +0000 Subject: [PATCH] Bug 26351: (QA follow-up) Remove unused method barcode_transform --- 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 bf5c33c524..c15153cef8 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 => 55; +use Test::More tests => 54; use C4::Context; use Koha::Database; @@ -182,7 +182,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 18767dc295..552e38788a 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.24.1 (Apple Git-126)