Bug 17615 - Fix unit tests
authorAlex Arnaud <alex.arnaud@biblibre.com>
Thu, 19 Jan 2017 15:22:05 +0000 (15:22 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 13:37:34 +0000 (13:37 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

t/db_dependent/Auth_with_ldap.t

index aa80901..8c4b9ba 100755 (executable)
@@ -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',