summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/04-template-handling.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/04-template-handling.t b/t/04-template-handling.t
index e5cd0347..96dde50b 100644
--- a/t/04-template-handling.t
+++ b/t/04-template-handling.t
@@ -376,4 +376,14 @@ cmp_ok($number->[1], 'eq', 'hello',
$template = undef;
$form = undef;
-$form = new Form;
+my $lsmb = LedgerSMB->new();
+$locale = LedgerSMB::Locale->get_handle( ${LedgerSMB::Sysconfig::language} )
+ or $lsmb->error( __FILE__ . ':' . __LINE__ . ": Locale not loaded: $!\n" );
+
+
+$template = new LedgerSMB::Template('user' => {numberformat => '1.000,00'},
+ 'format' => 'HTML', path => 't/data', locale => $locale, 'template' => '04-complex_template', 'no_auto_output' => 1);
+
+$template->render({});
+
+