From 8e0e1797245d7e23da5008267facde2887dd5274 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy 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 --- 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