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 <roman.dolny@jezuici.pl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit ea6e31c39b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Fridolin Somers 2025-04-25 11:21:18 +02:00
parent 8b0fef77af
commit 523eee0bf2
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 1 additions and 1 deletions

View File

@ -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 } } );