|
Lines 473-480
subtest 'EmailPurchaseSuggestions' => sub {
Link Here
|
| 473 |
'New suggestion does not send an email when EmailPurchaseSuggestions disabled' ); |
473 |
'New suggestion does not send an email when EmailPurchaseSuggestions disabled' ); |
| 474 |
|
474 |
|
| 475 |
# EmailPurchaseSuggestions set to BranchEmailAddress |
475 |
# EmailPurchaseSuggestions set to BranchEmailAddress |
| 476 |
t::lib::Mocks::mock_preference( "EmailPurchaseSuggestions", |
476 |
t::lib::Mocks::mock_preference( "EmailPurchaseSuggestions", "BranchEmailAddress" ); |
| 477 |
"BranchEmailAddress" ); |
477 |
t::lib::Mocks::mock_preference( "ReplytoDefault", "" ); |
|
|
478 |
t::lib::Mocks::mock_preference( "EmailAddressForSuggestions", "" ); |
| 479 |
Koha::Libraries->find('CPL')->update( { branchemail => '', branchreplyto => '' } ); |
| 478 |
Koha::Suggestion->new($my_suggestion)->store; |
480 |
Koha::Suggestion->new($my_suggestion)->store; |
| 479 |
|
481 |
|
| 480 |
t::lib::Mocks::mock_preference( "ReplytoDefault", 'library@b.c' ); |
482 |
t::lib::Mocks::mock_preference( "ReplytoDefault", 'library@b.c' ); |
| 481 |
- |
|
|