From d37a1b25e17d11d59ef1720d6e33289ee45fd1f3 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 4 Oct 2022 12:00:18 +0100 Subject: [PATCH] Bug 25936: (follow-up) Fix ../api/v1/patrons.t Disable password change notifications for the api test to negate the need for setting up notices. --- t/db_dependent/api/v1/patrons.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/db_dependent/api/v1/patrons.t b/t/db_dependent/api/v1/patrons.t index 3d23b60372..ca742986c2 100755 --- a/t/db_dependent/api/v1/patrons.t +++ b/t/db_dependent/api/v1/patrons.t @@ -311,6 +311,9 @@ subtest 'add() tests' => sub { my $code = 'ho'; my $attr = "Let's go"; + # Disable trigger to notify patrons of password changes for these tests + t::lib::Mocks::mock_preference( 'NotifyPasswordChange', 0 ); + # Mock early, so existing mandatory attributes don't break all the tests my $mocked_patron = Test::MockModule->new('Koha::Patron'); $mocked_patron->mock( -- 2.20.1