From 72d9c28bbf2b715fddc684fbb4a8b79c27a9fa49 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 18 May 2015 14:19:19 +0200 Subject: [PATCH] Bug 13622: [QA Follow-up] Add unit test descriptions 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 Signed-off-by: Indranil Das Gupta (L2C2 Technologies) Signed-off-by: Tomas Cohen Arazi --- 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 1ad4c3bf69..1a21d311e2 100644 --- a/t/db_dependent/Letters.t +++ b/t/db_dependent/Letters.t @@ -304,7 +304,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:<>.' WHERE code = 'test_date';}); $prepared_letter = GetPreparedLetter(( @@ -315,7 +315,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:<>.' WHERE code = 'test_date';}); $prepared_letter = GetPreparedLetter(( @@ -326,7 +326,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','<>|<>|Ordernumber <> (<>) (<> ordered)');}); -- 2.39.5