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:
parent
cdfd9ae914
commit
76bf4a898e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue