Bugzilla – Attachment 39282 Details for
Bug 13622
Add option to display datetimes as dates in notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13622: [QA Follow-up] Add unit test descriptions
Bug-13622-QA-Follow-up-Add-unit-test-descriptions.patch (text/plain), 2.53 KB, created by
Marcel de Rooy
on 2015-05-18 12:27:42 UTC
(
hide
)
Description:
Bug 13622: [QA Follow-up] Add unit test descriptions
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2015-05-18 12:27:42 UTC
Size:
2.53 KB
patch
obsolete
>From dece8f7c2bc0d75fa805b054a2b011070a575cfc Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 18 May 2015 14:19:19 +0200 >Subject: [PATCH] Bug 13622: [QA Follow-up] Add unit test descriptions >Content-Type: text/plain; charset=utf-8 > >This report adds a few unit tests for datonly flag in notices. >This patch adds (very trivial) unit test descriptions. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Letters.t | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t >index 08fca6e..645d8ad 100644 >--- a/t/db_dependent/Letters.t >+++ b/t/db_dependent/Letters.t >@@ -285,7 +285,7 @@ $prepared_letter = GetPreparedLetter(( > substitute => $substitute, > repeat => $repeat, > )); >-is( $prepared_letter->{content}, q|This one only contains the date: | . output_pref({ dt => $date, dateonly => 1 }) . q|.| ); >+is( $prepared_letter->{content}, q|This one only contains the date: | . output_pref({ dt => $date, dateonly => 1 }) . q|.|, 'dateonly test 1' ); > > $dbh->do(q{UPDATE letter SET content = 'And also this one:<<timestamp | dateonly>>.' WHERE code = 'test_date';}); > $prepared_letter = GetPreparedLetter(( >@@ -296,7 +296,7 @@ $prepared_letter = GetPreparedLetter(( > substitute => $substitute, > repeat => $repeat, > )); >-is( $prepared_letter->{content}, q|This one only contains the date: | . output_pref({ dt => $date, dateonly => 1 }) . q|.| ); >+is( $prepared_letter->{content}, q|This one only contains the date: | . output_pref({ dt => $date, dateonly => 1 }) . q|.|, 'dateonly test 2' ); > > $dbh->do(q{UPDATE letter SET content = 'And also this one:<<timestamp|dateonly >>.' WHERE code = 'test_date';}); > $prepared_letter = GetPreparedLetter(( >@@ -307,7 +307,7 @@ $prepared_letter = GetPreparedLetter(( > substitute => $substitute, > repeat => $repeat, > )); >-is( $prepared_letter->{content}, q|This one only contains the date: | . output_pref({ dt => $date, dateonly => 1 }) . q|.| ); >+is( $prepared_letter->{content}, q|This one only contains the date: | . output_pref({ dt => $date, dateonly => 1 }) . q|.|, 'dateonly test 3' ); > > $dbh->do(q{INSERT INTO letter (module, code, name, title, content) VALUES ('claimacquisition','TESTACQCLAIM','Acquisition Claim','Item Not Received','<<aqbooksellers.name>>|<<aqcontacts.name>>|<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (<<aqorders.quantity>> ordered)</order>');}); > >-- >1.7.10.4
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 13622
:
35539
|
39281
|
39282
|
40794
|
40795
|
42519
|
42520