Bugzilla – Attachment 167102 Details for
Bug 36944
Auth.t should not fail when AutoLocation is enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36944: Mock AutoLocation in 2FA subtest
Bug-36944-Mock-AutoLocation-in-2FA-subtest.patch (text/plain), 968 bytes, created by
Marcel de Rooy
on 2024-05-23 11:44:24 UTC
(
hide
)
Description:
Bug 36944: Mock AutoLocation in 2FA subtest
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-05-23 11:44:24 UTC
Size:
968 bytes
patch
obsolete
>From 8e0e1797245d7e23da5008267facde2887dd5274 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 23 May 2024 11:42:24 +0000 >Subject: [PATCH] Bug 36944: Mock AutoLocation in 2FA subtest >Content-Type: text/plain; charset=utf-8 > >Test plan: >Enable AutoLocation in prefs. >Run Auth.t. Should pass now. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Auth.t | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t >index 3ef06fc44d..d7d1f7cfe8 100755 >--- a/t/db_dependent/Auth.t >+++ b/t/db_dependent/Auth.t >@@ -274,6 +274,8 @@ subtest 'checkauth() tests' => sub { > subtest 'Two-factor authentication' => sub { > plan tests => 18; > >+ t::lib::Mocks::mock_preference( 'AutoLocation', 0 ); >+ > my $patron = $builder->build_object( > { class => 'Koha::Patrons', value => { flags => 1 } } ); > my $password = 'password'; >-- >2.30.2
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 36944
: 167102