Bugzilla – Attachment 181495 Details for
Bug 39746
Wrong system preference 'AutoLocation' in test suite
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39746: Wrong system preference 'AutoLocation' in test suite
Bug-39746-Wrong-system-preference-AutoLocation-in-.patch (text/plain), 1.07 KB, created by
Fridolin Somers
on 2025-04-25 09:26:51 UTC
(
hide
)
Description:
Bug 39746: Wrong system preference 'AutoLocation' in test suite
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2025-04-25 09:26:51 UTC
Size:
1.07 KB
patch
obsolete
>From 514284da65fd1cacb10e6c3865b16559238b5631 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 25 Apr 2025 11:21:18 +0200 >Subject: [PATCH] Bug 39746: 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 >--- > 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.43.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39746
:
181495
|
181497
|
181504