diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t index 28c1300de8..3267593aba 100755 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -271,7 +271,7 @@ subtest 'checkauth() tests' => sub { subtest 'Two-factor authentication' => sub { plan tests => 18; - t::lib::Mocks::mock_preference( 'AutoLocation', 0 ); + t::lib::Mocks::mock_preference( 'StaffLoginRestrictLibraryByIP', 0 ); my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 1 } } );