Commit c6d898b2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make more realistic business paths (i.e. adding 'order' path.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34541 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1bbc2bb2
......@@ -143,6 +143,7 @@ class TestBPMEvaluationMixin(TestBPMMixin):
def _createOrderRootSimulationRule(self):
rule = self._createTradeRootSimulationRule(portal_type='Order Root Simulation Rule',
trade_phase='default/order',
reference='default_order_rule')
rule.validate()
transaction.commit()
......@@ -505,6 +506,14 @@ class TestBPMEvaluationDefaultProcessMixin:
referential_date='start_date')
self._createBusinessStateList()
self.order_path = self.createBusinessPath(self.business_process,
successor_value=self.ordered_state,
trade_phase='default/order',
deliverable=1,
completed_state_list=['confirmed'],
frozen_state_list=['confirmed'],
)
self.delivery_path = self.createBusinessPath(self.business_process,
predecessor_value=self.ordered_state,
successor_value=self.delivered_state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment