Bug 40384: Remove warnings from Koha/Plugins/Patron.t
t/db_dependent/Koha/Plugins/Patron.t .. 1/5 Plugin error (Test Plugin): Exception 'Koha::Exception' thrown 'patron_barcode_transform called with parameter: test_cn_1'
Plugin error (Test Plugin): Exception 'Koha::Exception' thrown 'patron_barcode_transform called with parameter: test_cn_1'
Plugin error (Test Plugin): Exception 'Koha::Exception' thrown 'patron_barcode_transform called with parameter: test_cn_1'
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit cc45e0b3d5)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
dcc3748bdd
commit
520ec5d991
|
|
@ -16,8 +16,10 @@
|
|||
|
||||
use Modern::Perl;
|
||||
|
||||
use Test::More tests => 5;
|
||||
use Test::More tests => 6;
|
||||
use Test::NoWarnings;
|
||||
use Test::Exception;
|
||||
use Test::MockModule;
|
||||
|
||||
use File::Basename;
|
||||
|
||||
|
|
@ -51,6 +53,10 @@ subtest 'check_password hook tests' => sub {
|
|||
my $plugins = Koha::Plugins->new;
|
||||
$plugins->InstallPlugins;
|
||||
|
||||
# Mock patron_barcode_transform: we don't want to call it as it generates warnings
|
||||
my $plugin_mock = Test::MockModule->new("Koha::Plugin::Test");
|
||||
$plugin_mock->mock( "patron_barcode_transform", sub { } );
|
||||
|
||||
# Test Plugin enforces a 4 digit numeric pin for passwords
|
||||
my $plugin = Koha::Plugin::Test->new->enable;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue