From: Sven Schöling Date: Wed, 14 Sep 2011 09:43:18 +0000 (+0200) Subject: dispatcher muss mittlerweile eine Instanz sein. X-Git-Tag: release-2.7.0beta1~304 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0d4dc3512d2d586fc1500ec2409a83930e272092;p=kivitendo-erp.git dispatcher muss mittlerweile eine Instanz sein. --- 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');