From 2fe6f6047f211ce7065c6558898483ca2ce7b4dc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Jun 2016 11:48:46 +0100 Subject: [PATCH] Bug 16441: Fix Letters.t Content-Type: text/plain; charset=utf-8 These tests were wrong, but the package variable used to cache the letters hid the problem. Signed-off-by: Marcel de Rooy --- t/db_dependent/Letters.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t index ed5c972..c28f90f 100644 --- a/t/db_dependent/Letters.t +++ b/t/db_dependent/Letters.t @@ -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|.|, 'dateonly test 2' ); +is( $prepared_letter->{content}, q|And also this one:| . 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(( @@ -337,7 +337,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|.|, 'dateonly test 3' ); +is( $prepared_letter->{content}, q|And also this one:| . 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)');}); -- 1.7.10.4