projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: $::form nur über Helfermethode Support::TestSetup::create_new_form anlege
[kivitendo-erp.git]
/
t
/
controllers
/
financial_overview
/
sales_orders.t
diff --git
a/t/controllers/financial_overview/sales_orders.t
b/t/controllers/financial_overview/sales_orders.t
index
8994fad
..
abfcf7e
100644
(file)
--- a/
t/controllers/financial_overview/sales_orders.t
+++ b/
t/controllers/financial_overview/sales_orders.t
@@
-70,6
+70,7
@@
sub create_sales_order {
description => 'Fourty-two fifty-four',
lastcost => 222.22,
sellprice => 333.33,
description => 'Fourty-two fifty-four',
lastcost => 222.22,
sellprice => 333.33,
+ part_type => 'part',
buchungsgruppen_id => $buchungsgruppe->id,
unit => $unit->name,
%{ $params{part} }
buchungsgruppen_id => $buchungsgruppe->id,
unit => $unit->name,
%{ $params{part} }
@@
-104,7
+105,7
@@
sub create_sales_order {
ok($order->save(cascade => 1));
ok($order->save(cascade => 1));
- $::form =
Form->new('')
;
+ $::form =
Support::TestSetup->create_new_form
;
$::form->{year} = 2014;
$ctrl = SL::Controller::FinancialOverview->new;
$::form->{year} = 2014;
$ctrl = SL::Controller::FinancialOverview->new;