projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
830c089
)
dispatcher muss mittlerweile eine Instanz sein.
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 14 Sep 2011 09:43:18 +0000
(11:43 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 14 Sep 2011 09:43:18 +0000
(11:43 +0200)
t/helper/attr.t
patch
|
blob
|
history
diff --git
a/t/helper/attr.t
b/t/helper/attr.t
index
cad0a0f
..
4a4576f
100644
(file)
--- 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');