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 <m.de.rooy@rijksmuseum.nl> Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
parent
cef7cd40ce
commit
72d9c28bbf
1 changed files with 3 additions and 3 deletions
|
@ -304,7 +304,7 @@ $prepared_letter = GetPreparedLetter((
|
||||||
substitute => $substitute,
|
substitute => $substitute,
|
||||||
repeat => $repeat,
|
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';});
|
$dbh->do(q{UPDATE letter SET content = 'And also this one:<<timestamp | dateonly>>.' WHERE code = 'test_date';});
|
||||||
$prepared_letter = GetPreparedLetter((
|
$prepared_letter = GetPreparedLetter((
|
||||||
|
@ -315,7 +315,7 @@ $prepared_letter = GetPreparedLetter((
|
||||||
substitute => $substitute,
|
substitute => $substitute,
|
||||||
repeat => $repeat,
|
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';});
|
$dbh->do(q{UPDATE letter SET content = 'And also this one:<<timestamp|dateonly >>.' WHERE code = 'test_date';});
|
||||||
$prepared_letter = GetPreparedLetter((
|
$prepared_letter = GetPreparedLetter((
|
||||||
|
@ -326,7 +326,7 @@ $prepared_letter = GetPreparedLetter((
|
||||||
substitute => $substitute,
|
substitute => $substitute,
|
||||||
repeat => $repeat,
|
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>');});
|
$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>');});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue