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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2022-10-03 08:03:50 +00:00 committed by Tomas Cohen Arazi
parent cdfd9ae914
commit 76bf4a898e
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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;