Lines 423-428
$bookseller->contacts->next->email('testemail@mydomain.com')->store;
Link Here
|
423 |
# Ensure that the preference 'LetterLog' is set to logging |
423 |
# Ensure that the preference 'LetterLog' is set to logging |
424 |
t::lib::Mocks::mock_preference( 'LetterLog', 'on' ); |
424 |
t::lib::Mocks::mock_preference( 'LetterLog', 'on' ); |
425 |
|
425 |
|
|
|
426 |
# SendAlerts needs branchemail or KohaAdminEmailAddress as sender |
427 |
C4::Context->_new_userenv('DUMMY'); |
428 |
C4::Context->set_userenv( 0, 0, 0, 'firstname', 'surname', $library->{branchcode}, 'My Library', 0, '', ''); |
429 |
t::lib::Mocks::mock_preference( 'KohaAdminEmailAddress', 'library@domain.com' ); |
430 |
|
426 |
{ |
431 |
{ |
427 |
warning_is { |
432 |
warning_is { |
428 |
$err = SendAlerts( 'orderacquisition', $basketno , 'TESTACQORDER' ) } |
433 |
$err = SendAlerts( 'orderacquisition', $basketno , 'TESTACQORDER' ) } |
429 |
- |
|
|