From 76bf4a898e38a76596ee198d893a8fbfa79a0bfb Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 3 Oct 2022 08:03:50 +0000 Subject: [PATCH] Bug 23538: (follow-up) Workaround to fix Patron.t See comment36 and comment37. This needs more attention but serves as a quick fix only. Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/Patron.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/db_dependent/Koha/Patron.t b/t/db_dependent/Koha/Patron.t index fa035b8c04..ae8a7eed46 100755 --- a/t/db_dependent/Koha/Patron.t +++ b/t/db_dependent/Koha/Patron.t @@ -1340,6 +1340,7 @@ subtest 'notify_library_of_registration()' => sub { # Test when EmailPatronRegistrations equals KohaAdminEmailAddress t::lib::Mocks::mock_preference( 'EmailPatronRegistrations', 'KohaAdminEmailAddress' ); + t::lib::Mocks::mock_preference( 'ReplyToDefault', 'root@localhost' ); # FIXME Remove localhost is( $patron->notify_library_of_registration(C4::Context->preference('EmailPatronRegistrations')), 1, 'OPAC_REG email is queued if EmailPatronRegistration syspref equals KohaAdminEmailAddress'); $sth->execute( $patron->borrowernumber ); $to_address = $sth->fetchrow_array; -- 2.39.5