Commit fb417205 authored by Yusuke Muraoka's avatar Yusuke Muraoka

never use doActionFor, use workflow method directly instead.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32253 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b8d0856c
......@@ -1144,8 +1144,11 @@ class TestWorkflow(SecurityTestCase):
def test_autoplanned(self):
sale_invoice = self.portal.getDefaultModule('Sale Invoice').newContent(portal_type='Sale Invoice')
self.assertEquals(sale_invoice.getSimulationState(), 'draft')
self.portal.portal_workflow.doActionFor(sale_invoice, 'auto_plan')
self.tic()
sale_invoice.autoPlan()
self.assertEquals(sale_invoice.getSimulationState(), 'auto_planned')
self.tic()
# other as anonymous
self.failIfUserCanAccessDocument(self.other.getId(), sale_invoice)
......
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