From 6d2ce70a479367530ef7973251e799e7be6f44db Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Thu, 19 Jan 2017 15:22:05 +0000 Subject: [PATCH] Bug 17615 - Fix unit tests Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- t/db_dependent/Auth_with_ldap.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Auth_with_ldap.t b/t/db_dependent/Auth_with_ldap.t index aa809015a2..8c4b9ba3a0 100755 --- a/t/db_dependent/Auth_with_ldap.t +++ b/t/db_dependent/Auth_with_ldap.t @@ -20,6 +20,7 @@ use Modern::Perl; use Test::More tests => 4; use Test::MockModule; use Test::MockObject; +use t::lib::Mocks; use t::lib::TestBuilder; use Test::Warn; @@ -170,6 +171,7 @@ subtest 'checkpw_ldap tests' => sub { $update = 1; reload_ldap_module(); + t::lib::Mocks::mock_preference( 'ExtendedPatronAttributes', 1 ); my $auth = Test::MockModule->new('C4::Auth_with_ldap'); $auth->mock( 'update_local', -- 2.20.1