View | Details | Raw Unified | Return to bug 23538
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Patron.t (-1 / +1 lines)
Lines 1340-1345 subtest 'notify_library_of_registration()' => sub { Link Here
1340
1340
1341
    # Test when EmailPatronRegistrations equals KohaAdminEmailAddress
1341
    # Test when EmailPatronRegistrations equals KohaAdminEmailAddress
1342
    t::lib::Mocks::mock_preference( 'EmailPatronRegistrations', 'KohaAdminEmailAddress' );
1342
    t::lib::Mocks::mock_preference( 'EmailPatronRegistrations', 'KohaAdminEmailAddress' );
1343
    t::lib::Mocks::mock_preference( 'ReplyToDefault', 'root@localhost' ); # FIXME Remove localhost
1343
    is( $patron->notify_library_of_registration(C4::Context->preference('EmailPatronRegistrations')), 1, 'OPAC_REG email is queued if EmailPatronRegistration syspref equals KohaAdminEmailAddress');
1344
    is( $patron->notify_library_of_registration(C4::Context->preference('EmailPatronRegistrations')), 1, 'OPAC_REG email is queued if EmailPatronRegistration syspref equals KohaAdminEmailAddress');
1344
    $sth->execute( $patron->borrowernumber );
1345
    $sth->execute( $patron->borrowernumber );
1345
    $to_address = $sth->fetchrow_array;
1346
    $to_address = $sth->fetchrow_array;
1346
- 

Return to bug 23538