From 8a90ec5432a4d282a22456ab99e05b3c0e22f97d 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 Test plan: Enable AutoLocation in prefs. Run Auth.t. Should pass now. Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- 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 247a308b65..2da1d68352 100755 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -271,6 +271,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.39.5