From 0d4dc3512d2d586fc1500ec2409a83930e272092 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 14 Sep 2011 11:43:18 +0200 Subject: [PATCH] dispatcher muss mittlerweile eine Instanz sein. --- t/helper/attr.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t/helper/attr.t b/t/helper/attr.t index cad0a0f9c..4a4576fa8 100644 --- a/t/helper/attr.t +++ b/t/helper/attr.t @@ -7,12 +7,16 @@ use_ok 'SL::DB::Order'; use_ok 'SL::DB::Invoice'; use_ok 'SL::Dispatcher'; -SL::Dispatcher::pre_startup_setup(); +{ +$::dispatcher = SL::Dispatcher->new; +$::dispatcher->pre_startup_setup; +no warnings 'once'; $::form = Form->new; $::myconfig{numberformat} = '1.000,00'; $::myconfig{dateformat} = 'dd.mm.yyyy'; $::locale = Locale->new('de'); +} my $p = new_ok 'SL::DB::Part'; is($p->sellprice_as_number('2,30'), '2,30'); -- 2.20.1