From e6859b46ec0fc2402e6ae91a11620aece4084168 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 18 May 2023 12:11:37 -0300 Subject: [PATCH] Bug 29046: (QA follow-up) Make sure tests get the right EmailFieldPrimary value mocked Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/Patrons.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t index 567ff118dd..89ce426187 100755 --- a/t/db_dependent/Koha/Patrons.t +++ b/t/db_dependent/Koha/Patrons.t @@ -1891,6 +1891,8 @@ subtest '->set_password' => sub { plan tests => 16; + t::lib::Mocks::mock_preference( 'EmailFieldPrecedence', 'emailpro|email' ); + $schema->storage->txn_begin; my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { login_attempts => 3 } } ); -- 2.39.2