From 3fa0ec20b270f98682fab1e76dde5113108fbb7d 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 These tests were wrong, but the package variable used to cache the letters hid the problem. --- 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)');}); -- 2.8.1