View | Details | Raw Unified | Return to bug 15969
Collapse All | Expand All

(-)a/t/db_dependent/Letters/TemplateToolkit.t (-1 / +12 lines)
Lines 1174-1177 sub process_letter { Link Here
1174
    return $letter;
1174
    return $letter;
1175
}
1175
}
1176
1176
1177
$sth->execute( "TEST_SUBSTITUTION", "[% SubstituteMe %]" );
1178
$prepared_letter = GetPreparedLetter(
1179
    (
1180
        module      => 'test',
1181
        letter_code => 'TEST_SUBSTITUTION',
1182
        substitute => {
1183
            SubstituteMe => 'Substituted'
1184
        }
1185
    )
1186
);
1187
is( $prepared_letter->{content}, 'Substituted', 'Substitution works correctly' );
1188
1177
$schema->storage->txn_rollback;
1189
$schema->storage->txn_rollback;
1178
- 

Return to bug 15969