Bugzilla – Attachment 103182 Details for
Bug 15969
Allow use of Template Toolkit syntax for Phone Notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15969 - Add unit test of substitution param
Bug-15969---Add-unit-test-of-substitution-param.patch (text/plain), 1.25 KB, created by
Kyle M Hall (khall)
on 2020-04-17 18:57:57 UTC
(
hide
)
Description:
Bug 15969 - Add unit test of substitution param
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-04-17 18:57:57 UTC
Size:
1.25 KB
patch
obsolete
>From 639525f08c186d35946af1716fd4c79bd5261eea Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 2 Dec 2016 15:52:10 +0000 >Subject: [PATCH] Bug 15969 - Add unit test of substitution param > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > t/db_dependent/Letters/TemplateToolkit.t | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Letters/TemplateToolkit.t b/t/db_dependent/Letters/TemplateToolkit.t >index 6f55a8a93e..14c7511226 100644 >--- a/t/db_dependent/Letters/TemplateToolkit.t >+++ b/t/db_dependent/Letters/TemplateToolkit.t >@@ -19,7 +19,7 @@ > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >-use Test::More tests => 19; >+use Test::More tests => 20; > use Test::MockModule; > use Test::Warn; > >@@ -1166,3 +1166,15 @@ sub process_letter { > ); > return $letter; > } >+ >+$sth->execute( "TEST_SUBSTITUTION", "[% SubstituteMe %]" ); >+$prepared_letter = GetPreparedLetter( >+ ( >+ module => 'test', >+ letter_code => 'TEST_SUBSTITUTION', >+ substitute => { >+ SubstituteMe => 'Substituted' >+ } >+ ) >+); >+is( $prepared_letter->{content}, 'Substituted', 'Substitution works correctly' ); >-- >2.24.2 (Apple Git-127)
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 15969
:
48618
|
48811
|
55819
|
55820
|
57931
|
57933
|
57934
|
57935
|
59923
|
59924
|
59925
|
59926
|
59937
|
59940
|
59941
|
59942
|
59943
|
59944
|
59945
|
59962
|
59963
|
59964
|
59965
|
71141
|
71142
|
71143
|
71144
|
103181
|
103182
|
103183
|
103184
|
114413
|
114414
|
114415
|
114416
|
118207
|
118208
|
118209
|
118210