Bugzilla – Attachment 71142 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.22 KB, created by
Kyle M Hall (khall)
on 2018-02-02 10:49:15 UTC
(
hide
)
Description:
Bug 15969 - Add unit test of substitution param
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-02-02 10:49:15 UTC
Size:
1.22 KB
patch
obsolete
>From 837e34fb39214039ba6d204df6dae84a74488ed4 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 611b936..3423ce6 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 => 17; >+use Test::More tests => 18; > use Test::Warn; > > use MARC::Record; >@@ -934,3 +934,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.10.2
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