Bugzilla – Attachment 62042 Details for
Bug 18413
Fix Letters.t (follow-up of 17866)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18413: Fix Letters.t (following bug 17866)
Bug-18413-Fix-Letterst-following-bug-17866.patch (text/plain), 1.33 KB, created by
Jonathan Druart
on 2017-04-11 13:33:12 UTC
(
hide
)
Description:
Bug 18413: Fix Letters.t (following bug 17866)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-04-11 13:33:12 UTC
Size:
1.33 KB
patch
obsolete
>From 31e78e6dd98a33c15a63a85153aa9384411f69a1 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 11 Apr 2017 14:15:54 +0200 >Subject: [PATCH] Bug 18413: Fix Letters.t (following bug 17866) > >SendAlert now needs a userenv to find branch email and the fallback >of KohaAdminEmailAddress if the branch mail is not filled. > >Test plan: >Run t/db_dependent/Letters.t > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Letters.t | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t >index cb8e6ca..e752a45 100644 >--- a/t/db_dependent/Letters.t >+++ b/t/db_dependent/Letters.t >@@ -423,6 +423,11 @@ $bookseller->contacts->next->email('testemail@mydomain.com')->store; > # Ensure that the preference 'LetterLog' is set to logging > t::lib::Mocks::mock_preference( 'LetterLog', 'on' ); > >+# SendAlerts needs branchemail or KohaAdminEmailAddress as sender >+C4::Context->_new_userenv('DUMMY'); >+C4::Context->set_userenv( 0, 0, 0, 'firstname', 'surname', $library->{branchcode}, 'My Library', 0, '', ''); >+t::lib::Mocks::mock_preference( 'KohaAdminEmailAddress', 'library@domain.com' ); >+ > { > warning_is { > $err = SendAlerts( 'orderacquisition', $basketno , 'TESTACQORDER' ) } >-- >2.9.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18413
:
62039
| 62042