From f7fa6c8de257bd4934c8e84ae0a33f368dda27b0 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 25 Apr 2025 11:21:18 +0200 Subject: [PATCH] Bug 39746: Fix wrong system preference 'AutoLocation' in test suite Bug 26176 renamed 'AutoLocation' to 'StaffLoginRestrictLibraryByIP' Needs to be fixed in test suite Test plan: Enable 'StaffLoginRestrictLibraryByIP' in prefs Run : prove Auth.t Should pass Signed-off-by: Roman Dolny --- t/db_dependent/Auth.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t index 9005d7ca41..f60462cc37 100755 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -279,7 +279,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 } } ); my $password = 'password'; -- 2.39.5