Lines 16-23
Link Here
|
16 |
|
16 |
|
17 |
use Modern::Perl; |
17 |
use Modern::Perl; |
18 |
|
18 |
|
19 |
use Test::More tests => 5; |
19 |
use Test::More tests => 6; |
|
|
20 |
use Test::NoWarnings; |
20 |
use Test::Exception; |
21 |
use Test::Exception; |
|
|
22 |
use Test::MockModule; |
21 |
|
23 |
|
22 |
use File::Basename; |
24 |
use File::Basename; |
23 |
|
25 |
|
Lines 51-56
subtest 'check_password hook tests' => sub {
Link Here
|
51 |
my $plugins = Koha::Plugins->new; |
53 |
my $plugins = Koha::Plugins->new; |
52 |
$plugins->InstallPlugins; |
54 |
$plugins->InstallPlugins; |
53 |
|
55 |
|
|
|
56 |
# Mock patron_barcode_transform: we don't want to call it as it generates warnings |
57 |
my $plugin_mock = Test::MockModule->new("Koha::Plugin::Test"); |
58 |
$plugin_mock->mock( "patron_barcode_transform", sub { } ); |
59 |
|
54 |
# Test Plugin enforces a 4 digit numeric pin for passwords |
60 |
# Test Plugin enforces a 4 digit numeric pin for passwords |
55 |
my $plugin = Koha::Plugin::Test->new->enable; |
61 |
my $plugin = Koha::Plugin::Test->new->enable; |
56 |
|
62 |
|
57 |
- |
|
|