From c78f4e7d0e87d71c6ab923a8296f0b0c727f9e9d 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 --- 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 aa80901..8c4b9ba 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.7.4