Bugzilla – Attachment 148257 Details for
Bug 33242
Allow passing things like add_days => 3 to KohaDates filter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33242: Add unit test
Bug-33242-Add-unit-test.patch (text/plain), 1.69 KB, created by
Marcel de Rooy
on 2023-03-16 10:04:49 UTC
(
hide
)
Description:
Bug 33242: Add unit test
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-03-16 10:04:49 UTC
Size:
1.69 KB
patch
obsolete
>From d04ca1bfc60ae97dd0dc7123f606b8e91436b981 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 16 Mar 2023 11:01:07 +0100 >Subject: [PATCH] Bug 33242: Add unit test >Content-Type: text/plain; charset=utf-8 > >Test plan: >Run t/db_dependent/Letters/TemplateToolkit.t > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Letters/TemplateToolkit.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Letters/TemplateToolkit.t b/t/db_dependent/Letters/TemplateToolkit.t >index edd91ac091..43927314fa 100755 >--- a/t/db_dependent/Letters/TemplateToolkit.t >+++ b/t/db_dependent/Letters/TemplateToolkit.t >@@ -1159,6 +1159,8 @@ subtest 'Dates formatting' => sub { > [% biblio.datecreated %] > [% biblio.datecreated | \$KohaDates %] > [% biblio.datecreated | \$KohaDates with_hours => 1 %] >+[% biblio.datecreated | \$KohaDates with_hours => 1, add_years => 2 %] >+[% biblio.datecreated | \$KohaDates with_hours => 1, subtract_months => 3 %] > > [% biblio.timestamp | \$KohaDates dateformat => 'iso' %] > [% KohaDates.output_preference( str => biblio.timestamp, dateformat => 'iso' ) %] >@@ -1172,7 +1174,7 @@ EOF > biblio => $biblio->biblionumber, > } > ); >- my $expected_content = sprintf("%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n%s\n", >+ my $expected_content = sprintf("%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n", > '2018-12-13 20:21:22', > '13/12/2018', > '13/12/2018 20:21', >@@ -1180,6 +1182,8 @@ EOF > '2018-12-13', > '13/12/2018', > '13/12/2018 00:00', >+ '13/12/2020 00:00', >+ '13/09/2018 00:00', > > '2018-12-13', > '2018-12-13 20:21', >-- >2.30.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 33242
:
148256
|
148257
|
148261
|
148262
|
148264
|
148265
|
150390
|
150391
|
150392